]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
mke2fs: don't let resize= turn on resize_inode when meta_bg is set
authorTheodore Ts'o <tytso@mit.edu>
Fri, 18 Oct 2013 04:49:16 +0000 (21:49 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 23 Oct 2013 23:39:42 +0000 (19:39 -0400)
commitcecfb4c04227dd5803c24b311d92a80e91b7b380
tree39ca7236cd5f0a5eb12896eceef0cddc1e708470
parentd36e027f9ce175f2437dcf681479935e185755a0
mke2fs: don't let resize= turn on resize_inode when meta_bg is set

Passing the "-E resize=NNN" option to mke2fs sets the resize_inode
feature.  However, resize_inode and meta_bg are mutually exclusive;
unfortunately, we check this constraint before we parse the extended
options.  Fix this by moving this check after the calls
parse_extended_opts().

Reported-by: "Darrick J. Wong" <darrick.wong@oracle.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/mke2fs.c