Whamcloud - gitweb
tune2fs: disallow tune2fs to set inode size larger than block size
authorAkira Fujita <a-fujita@rs.jp.nec.com>
Mon, 22 Apr 2013 03:14:28 +0000 (23:14 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 22 Apr 2013 03:14:28 +0000 (23:14 -0400)
commitfab0d286ec8539988551271c5faa864ea38dc4d4
treefac1da6f93fd33c05f92774d69b9f44dc8bf37a5
parente79a9395b382e831c125d000d2bf16ba4b6253d4
tune2fs: disallow tune2fs to set inode size larger than block size

Disallow tune2fs command to set the inode size to be larger than the
block size.  Without this patch, tune2fs makes the file system to be
unmountable.

Steps to reproduce:

1.Create ext4 without flex_bg (or just create ext3)
  # mke2fs -t ext4 -O ^flex_bg DEV

2.Set inode size larger than block size
  # tune2fs -I 8192 DEV

3. We failed to mount FS
  # mount DEV MP
    mount: wrong fs type, bad option, bad superblock on /dev/sda7,
           missing codepage or helper program, or other error
           In some cases useful info is found in syslog - try
           dmesg | tail  or so

Signed-off-by: Akira Fujita <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/tune2fs.c