From 064258c7bb285163fe2deabe411e39c2b9d1e755 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 29 Sep 2019 02:41:50 +0200 Subject: Fix inode numbering: always start with 1, use 0 as parent for the root Signed-off-by: David Oberhollenzer --- tar/tar2sqfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tar') diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c index e0ffa99..ebbec41 100644 --- a/tar/tar2sqfs.c +++ b/tar/tar2sqfs.c @@ -499,7 +499,7 @@ int main(int argc, char **argv) if (fstree_gen_inode_table(&fs)) goto out; - super.inode_count = fs.inode_tbl_size - 2; + super.inode_count = fs.inode_tbl_size; if (sqfs_serialize_fstree(outfile, &super, &fs, cmp, idtbl)) goto out; -- cgit v1.2.3