diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sqfs/data_writer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqfs/data_writer.c b/lib/sqfs/data_writer.c index e9a6193..fddb9d3 100644 --- a/lib/sqfs/data_writer.c +++ b/lib/sqfs/data_writer.c @@ -337,6 +337,8 @@ static int end_file(data_writer_t *data, file_info_t *fi, ref = find_equal_blocks(fi, list, data->super->block_size); if (ref > 0) { + data->super->bytes_used = fi->startblock; + fi->startblock = ref; fi->flags |= FILE_FLAG_BLOCKS_ARE_DUPLICATE; |