/*
* Amanda, The Advanced Maryland Automatic Network Disk Archiver
- * Copyright (c) 2009 Zmanda, Inc. All Rights Reserved.
+ * Copyright (c) 2009-2012 Zmanda, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
int fd;
char *next_filename;
+ guint64 bytes_read;
XferElement *dest_taper;
} XferSourceHolding;
bytes_read = full_read(self->fd, buf, HOLDING_BLOCK_SIZE);
if (bytes_read > 0) {
*size = bytes_read;
+ self->bytes_read += bytes_read;
return buf;
}
XferElement *elt = XFER_ELEMENT(self);
self->next_filename = g_strdup(filename);
+ self->bytes_read = 0;
return elt;
}
+guint64
+xfer_source_holding_get_bytes_read(
+ XferElement *elt)
+{
+ XferSourceHolding *self = (XferSourceHolding *)elt;
+
+ return self->bytes_read;
+}
+