summaryrefslogtreecommitdiff
path: root/tar
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-29 02:41:50 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-29 02:41:50 +0200
commit064258c7bb285163fe2deabe411e39c2b9d1e755 (patch)
tree672e27143504695920dd12f2a26ccb6f49a4cb80 /tar
parent318d14cabf4e29373006e04ee855f9583b0ce3a5 (diff)
Fix inode numbering: always start with 1, use 0 as parent for the root
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tar')
-rw-r--r--tar/tar2sqfs.c2
1 files changed, 1 insertions, 1 deletions
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;