summaryrefslogtreecommitdiff
path: root/mkfs/mkfs.c
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 /mkfs/mkfs.c
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 'mkfs/mkfs.c')
-rw-r--r--mkfs/mkfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs/mkfs.c b/mkfs/mkfs.c
index dc6d082..e36f2f4 100644
--- a/mkfs/mkfs.c
+++ b/mkfs/mkfs.c
@@ -225,7 +225,7 @@ int main(int argc, char **argv)
fstree_gen_file_list(&fs);
- super.inode_count = fs.inode_tbl_size - 2;
+ super.inode_count = fs.inode_tbl_size;
cmp = sqfs_compressor_create(&cfg);
if (cmp == NULL) {