diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-04 18:28:59 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-04 18:28:59 +0200 |
commit | 3b7f4dbb284462ef7065e19f1725f615973477da (patch) | |
tree | 2f1da14b33e69f4a73e49abf2fdec2dbd1844f23 /lib/sqfs/read_inode.c | |
parent | 407a2baae5622b05f1e9c4137448a973fd648736 (diff) |
Store number of file blocks in generic inode struct
This simplifies things a little bit.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/read_inode.c')
-rw-r--r-- | lib/sqfs/read_inode.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqfs/read_inode.c b/lib/sqfs/read_inode.c index 10337a7..6da9653 100644 --- a/lib/sqfs/read_inode.c +++ b/lib/sqfs/read_inode.c @@ -100,6 +100,7 @@ static sqfs_inode_generic_t *read_inode_file(meta_reader_t *ir, out->base = *base; out->data.file = file; out->block_sizes = (uint32_t *)out->extra; + out->num_file_blocks = count; if (meta_reader_read(ir, out->block_sizes, count * sizeof(uint32_t))) { free(out); @@ -143,6 +144,7 @@ static sqfs_inode_generic_t *read_inode_file_ext(meta_reader_t *ir, out->base = *base; out->data.file_ext = file; out->block_sizes = (uint32_t *)out->extra; + out->num_file_blocks = count; if (meta_reader_read(ir, out->block_sizes, count * sizeof(uint32_t))) { free(out); |