Whamcloud - gitweb
mke2fs: automatically use 256 byte inodes if project feature enabled
authorTheodore Ts'o <tytso@mit.edu>
Wed, 23 Aug 2017 14:30:09 +0000 (10:30 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 23 Aug 2017 15:06:40 +0000 (11:06 -0400)
commit66aae965073e4e617ac04e36f34d3fef309c3500
treec12913c88298cc19da3378fca908512fd55270a8
parentab5f3d04f83980678210aed742371d1fab5bb976
mke2fs: automatically use 256 byte inodes if project feature enabled

If the inode size is not implicitly requested on the command line, and
it is too small to support the project feature, automatically promote
the inode size to be 256 bytes so that the project feature will work.

Note the previous test to check for a too-small inode size didn't work
because it checked before inode size was set in fs_param.  Hence, it
was possible to create file systems with a 128 byte inode and the
project feature enabled.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c