[LU-16971] mke2fs fails with 100 blocks Created: 20/Jul/23  Updated: 07/Aug/23

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Dongyang Li Assignee: Dongyang Li
Resolution: Unresolved Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

is_e2fsprogs_feature_supp() tests if the -E options are supported by e2fsprogs,
by running mke2fs on a small tmp image with 100 blocks.
However mke2fs always fails:

mke2fs 1.47.0-wc3 (22-Jun-2023)
Discarding device blocks: done                            
Creating filesystem with 100 1k blocks and 8 inodes

Allocating group tables: done                            
Writing inode tables: done                            
ext2fs_mkdir: Could not allocate inode in ext2 filesystem while creating /lost+found

mke2fs only creates 8 inodes for this case, which is not enough.



 Comments   
Comment by Gerrit Updater [ 20/Jul/23 ]

"Li Dongyang <dongyangli@ddn.com>" uploaded a new patch: https://review.whamcloud.com/c/tools/e2fsprogs/+/51722
Subject: LU-16971 ext2fs: make sure we have at least EXT2_FIRST_INO + 1 inodes
Project: tools/e2fsprogs
Branch: master-lustre
Current Patch Set: 1
Commit: b86ece09a6056101c3a489369f71f2bb59617468

Comment by Gerrit Updater [ 07/Aug/23 ]

"Andreas Dilger <adilger@whamcloud.com>" merged in patch https://review.whamcloud.com/c/tools/e2fsprogs/+/51722/
Subject: LU-16971 ext2fs: make sure we have at least EXT2_FIRST_INO + 1 inodes
Project: tools/e2fsprogs
Branch: master-lustre
Current Patch Set:
Commit: e72ec8ac6e540877a452c953c69602d6739ac62f

Generated at Sat Feb 10 03:31:31 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.