summaryrefslogtreecommitdiff
path: root/lib/sqfs/data_writer.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-26 22:06:04 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-28 16:33:57 +0200
commit8b633067948a30a0d45091afcced0392dd28d105 (patch)
treed3cfdd43132da1cee604bd18b3569bd19ba8fdd8 /lib/sqfs/data_writer.c
parent0f1bedc90f4cb71d965e99446cf3e72a45909346 (diff)
Add fragment and block checksum fields to file_info_t
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/data_writer.c')
-rw-r--r--lib/sqfs/data_writer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfs/data_writer.c b/lib/sqfs/data_writer.c
index ae8257c..aff296e 100644
--- a/lib/sqfs/data_writer.c
+++ b/lib/sqfs/data_writer.c
@@ -131,7 +131,7 @@ static int flush_data_block(data_writer_t *data, size_t size,
uint32_t out;
if (is_zero_block(data->block, size)) {
- fi->blocksizes[data->block_idx++] = 0;
+ fi->blocks[data->block_idx++].size = 0;
fi->sparse += size;
return 0;
}
@@ -152,7 +152,7 @@ static int flush_data_block(data_writer_t *data, size_t size,
if (write_compressed(data, data->block, size, &out, flags))
return -1;
- fi->blocksizes[data->block_idx++] = out;
+ fi->blocks[data->block_idx++].size = out;
}
return 0;