summaryrefslogtreecommitdiff
path: root/lib/common/data_writer.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-22 23:37:18 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-02-22 23:37:18 +0100
commitaecc6dc5a9971eb4f1309f0754b0f213347c4d11 (patch)
tree08de6320e3dbdfff50df2d240b4b0031f428a6d3 /lib/common/data_writer.c
parentf1468f6da2dab9c1449f9f5e500159bcf733045e (diff)
Move inode size accounting completely to the block processor
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/common/data_writer.c')
-rw-r--r--lib/common/data_writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/common/data_writer.c b/lib/common/data_writer.c
index 8ebd868..0b4dc07 100644
--- a/lib/common/data_writer.c
+++ b/lib/common/data_writer.c
@@ -22,7 +22,7 @@ int write_data_from_file(const char *filename, sqfs_block_processor_t *data,
return -1;
}
- sqfs_inode_get_file_size(inode, &filesz);
+ filesz = file->get_size(file);
for (offset = 0; offset < filesz; offset += diff) {
if (filesz - offset > sizeof(buffer)) {