]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: fix support for inode sizes > 1024 bytes
authorTheodore Ts'o <tytso@mit.edu>
Thu, 6 Feb 2020 22:35:01 +0000 (17:35 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Feb 2020 16:54:08 +0000 (11:54 -0500)
commita146df833ee9d28342bdaae65c1d2dd07263cfe7
tree194a62f440a5f0b7bdaf323b8c9381708344fbcd
parent5350617eb04bc59425e7470c63d1447501eedd05
ext4: fix support for inode sizes > 1024 bytes

A recent commit, e7872c4f8a1e ("ext4: validate the
debug_want_extra_isize mount option at parse time"), moved mount-time
checks around.  One of those changes moved the inode size check before
the blocksize variable was set to the blocksize of the file system.
After e7872c4f8a1e was set to the minimum allowable blocksize, which
in practice on most systems would be 1024 bytes.  This cuased file
systems with inode sizes larger than 1024 bytes to be rejected with a
message:

EXT4-fs (sdXX): unsupported inode size: 4096

Fixes: e7872c4f8a1e ("ext4: validate the debug_want_extra_isize mount option at parse time")
Link: https://lore.kernel.org/r/20200206225252.GA3673@mit.edu
Reported-by: Herbert Poetzl <herbert@13thfloor.at>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/super.c