Skip to content

Commit

Permalink
Merge branch 'alibaba:release/0.7' into release/0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuiba committed Nov 16, 2023
2 parents 6dfbac0 + 3b0d9a8 commit c8ab60d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/extfs/mkfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ int do_mkfs(io_manager manager, size_t size, char *uuid) {
return ret;
}
// reserve inodes
ext2fs_inode_alloc_stats2(fs, EXT2_BAD_INO, +1, 0);
for (ext2_ino_t i = EXT2_ROOT_INO + 1; i < EXT2_FIRST_INODE(fs->super); i++)
ext2fs_inode_alloc_stats2(fs, i, +1, 0);
ext2fs_mark_ib_dirty(fs);
Expand Down

0 comments on commit c8ab60d

Please sign in to comment.