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/sqfshelper/deserialize_fstree.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/sqfshelper/deserialize_fstree.c')
-rw-r--r-- | lib/sqfshelper/deserialize_fstree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqfshelper/deserialize_fstree.c b/lib/sqfshelper/deserialize_fstree.c index 98c59fb..47410b0 100644 --- a/lib/sqfshelper/deserialize_fstree.c +++ b/lib/sqfshelper/deserialize_fstree.c @@ -133,7 +133,7 @@ static int fill_dir(meta_reader_t *ir, meta_reader_t *dr, tree_node_t *root, n = tree_node_from_inode(inode, idtbl, (char *)ent->name, - super->block_size); + fs->block_size); if (n == NULL) { free(ent); @@ -257,7 +257,7 @@ int deserialize_fstree(fstree_t *out, sqfs_super_t *super, compressor_t *cmp, out->defaults.st_mode = 0755; out->defaults.st_mtime = super->modification_time; - out->root = tree_node_from_inode(root, idtbl, "", super->block_size); + out->root = tree_node_from_inode(root, idtbl, "", out->block_size); if (out->root == NULL) { free(root); |