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 /include/sqfs | |
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 'include/sqfs')
-rw-r--r-- | include/sqfs/inode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sqfs/inode.h b/include/sqfs/inode.h index 1f50b2a..c72f3c2 100644 --- a/include/sqfs/inode.h +++ b/include/sqfs/inode.h @@ -114,6 +114,7 @@ typedef struct { sqfs_inode_t base; char *slink_target; uint32_t *block_sizes; + size_t num_file_blocks; union { sqfs_inode_dev_t dev; @@ -142,8 +143,7 @@ sqfs_inode_generic_t *meta_reader_read_inode(meta_reader_t *ir, uint64_t block_start, size_t offset); -int meta_writer_write_inode(meta_writer_t *ir, sqfs_inode_generic_t *n, - size_t file_num_blocks); +int meta_writer_write_inode(meta_writer_t *ir, sqfs_inode_generic_t *n); #ifdef __cplusplus } |