]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
tune2fs: more respect for quota config option
authorEric Sandeen <sandeen@redhat.com>
Mon, 14 Oct 2013 13:03:06 +0000 (09:03 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Oct 2013 13:03:20 +0000 (09:03 -0400)
commitd82445e903be682e09c41607ed5f7b338cb8c1b0
tree8e0a61a5a8fb26d9497cfd174ea5048aac4d7657
parentf5589f4c189a2d6b34fcd10570c496ca568e0aee
tune2fs: more respect for quota config option

Commit 44a2cca3 disabled tune2fs -O quota when the build
didn't have --enable-quota at configure time, but that
wasn't quite enough.

We need to exclude the "-Q" option as well from tune2fs
when --enable-quota isn't specified at configure time.

Otherwise, tune2fs -Q can set the quota feature, but no other
utility will touch the filesystem due to the unknown flag,
if buitl w/o --enable-quota.

So put everything related to "-Q" under #ifdef CONFIG_QUOTA;
usage output (was missing before) and option parsing.

Addresses-Red-Hat-Bugzilla: #1010709
Reported-by: Bert DeKnuydt <Bert.Deknuydt@esat.kuleuven.be>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
misc/tune2fs.c