e2fsprogs/misc
Akira Fujita fab0d286ec 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>
2013-04-21 23:14:28 -04:00
..
badblocks.8.in badblocks: update man page's description of the -v option 2011-09-15 19:33:34 -04:00
badblocks.c misc: cleanup unused variables on MacOS 2012-12-29 17:28:37 -05:00
base_device.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
base_device.tst ChangeLog, Makefile.in, base_device.c, base_device.tst, fsck.c, fsck.h: 2000-12-03 06:33:56 +00:00
blkid.8.in blkid: On the man page, show option arguments in the descriptions. 2008-08-14 13:29:50 -04:00
blkid.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
chattr.1.in chattr: update chattr's man page chattr for No_COW 2012-07-28 17:53:30 -04:00
chattr.c chattr: allow clearing the extent flag 2013-02-22 22:23:05 -05:00
dumpe2fs.8.in dumpe2fs.8.in: add man page warning about mounted file systems 2011-10-08 13:50:10 -04:00
dumpe2fs.c dumpe2fs: print journal's s_errno field if it is non-zero 2012-05-31 19:18:18 -04:00
e2freefrag.8.in e2freefrag: Update manpage to include e2fsprogs version and release date 2009-08-22 23:41:49 -04:00
e2freefrag.c e2freefrag: use 64-bit rbtree bitmaps 2012-10-04 23:30:23 -04:00
e2freefrag.h e2freefrag: Improve output to include be more like xfs_db's freesp -s 2009-07-24 18:33:46 -04:00
e2image.8.in e2image: add -a switch to include all data 2013-01-16 14:09:20 -05:00
e2image.c e2image: add -a switch to include all data 2013-01-16 14:09:20 -05:00
e2initrd_helper.c Fix gcc -Wall nits 2013-01-01 13:28:27 -05:00
e2label.8.in Update man pages to include ext4 in the synposis, instead of just "ext2/ext3" 2009-05-30 12:34:28 -04:00
e2label.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
e2undo.8.in Add e2undo command 2008-04-27 19:42:05 -04:00
e2undo.c e2undo: cast dptr to blk64_t to retrieve block number 2011-11-18 22:14:24 -05:00
e4defrag.8.in e4defrag: update man page about -c option 2010-12-13 09:59:07 -05:00
e4defrag.c e4defrag: handle device symlinks 2012-07-28 17:53:48 -04:00
filefrag.8.in filefrag: improvements to filefrag FIEMAP handling 2012-12-29 22:41:41 -05:00
filefrag.c Fix gcc -Wall nits 2013-01-01 13:28:27 -05:00
findfs.8.in Update version string for WIP release. 2002-08-18 03:38:15 -04:00
findsuper.c Pass the gettext() function to libcom_err 2011-10-05 01:00:30 -04:00
fsck.8.in Make fsck ignore mounted filesystems if given the -M option 2008-02-17 17:35:46 -05:00
fsck.c fsck: don't include sys/signal.h for portability reasons 2012-04-05 15:21:49 -07:00
fsck.h Fix miscellaneous gcc -Wall warnings 2008-03-17 23:17:13 -04:00
ismounted.c misc: cleanup unused variables on MacOS 2012-12-29 17:28:37 -05:00
jfs_user.h Move linux/jbd.h to ext2fs/kernel-jbd.h, to avoid using the 2001-12-23 19:33:51 -05:00
logsave.8.in * Add support for the -a and -s options to logsave. 2003-04-16 14:05:06 -04:00
logsave.c logsave: fix fd leak which could cause logsave to hang 2012-07-23 18:45:23 -04:00
lsattr.1.in chattr.1.in: Clarify man page. 2004-01-31 20:27:36 -05:00
lsattr.c Pass the gettext() function to libcom_err 2011-10-05 01:00:30 -04:00
Makefile.in Update misc/Makefile.in using "make depend" 2013-01-16 14:09:21 -05:00
mke2fs-hurd.conf Add "big" and "huge" types to mke2fs.conf 2011-10-03 23:46:17 -04:00
mke2fs.8.in mke2fs: document bigalloc and cluster-size 2013-01-15 14:13:10 -05:00
mke2fs.c mke2fs: don't display bigalloc/quota fs feature warnings in quiet mode 2013-03-31 20:41:22 -04:00
mke2fs.conf.5.in Fix typo and missing .TP in the tune2fs and mke2fs.conf man pages 2012-03-26 10:45:51 -07:00
mke2fs.conf.in mke2fs.conf: allow use of a custom mke2fs.conf file 2012-03-26 21:36:20 -07:00
mklost+found.8.in chattr.1.in: Clarify man page. 2004-01-31 20:27:36 -05:00
mklost+found.c Shorten compile commands run by the build system 2011-09-18 17:34:37 -04:00
nls-enable.h Fix more spelling errors found by translators and add pluralization 2011-10-09 17:54:23 -04:00
partinfo.c Pass the gettext() function to libcom_err 2011-10-05 01:00:30 -04:00
profile-to-c.awk Compile the default mke2fs.conf into mke2fs program 2007-07-04 14:27:30 -04:00
tune2fs.8.in Fix spelling typo's in man pages for tune2fs and mke2fs 2012-07-14 19:58:06 -04:00
tune2fs.c tune2fs: disallow tune2fs to set inode size larger than block size 2013-04-21 23:14:28 -04:00
util.c mke2fs: set s_max_mnt_count to -1 by default 2011-09-28 23:20:56 -04:00
util.h mke2fs: set s_max_mnt_count to -1 by default 2011-09-28 23:20:56 -04:00
uuidd.8.in Fix the pathname of /var/lib/uuidd/uuidd.pid in uuidd man page. 2008-01-19 18:13:14 -05:00
uuidd.c Fix more spelling errors found by translators and add pluralization 2011-10-09 17:54:23 -04:00
uuidd.rc Add uuidd daemon to prevent duplicate time-based UUID's 2007-12-16 17:28:46 -05:00
uuidgen.1.in Fix typo and clarify the uuidgen man page 2007-08-20 21:46:19 -04:00
uuidgen.c uuidgen: don't use set_com_err_gettext() 2011-10-05 15:03:59 -04:00