Whamcloud - gitweb
tune2fs: fix quota enablement regression
authorEric Whitney <enwlinux@gmail.com>
Sat, 4 Feb 2017 03:23:34 +0000 (22:23 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 6 Feb 2017 01:43:59 +0000 (20:43 -0500)
commit5f82cc95b31f87c62f18848142597d094fe966ee
tree648d61bdfed071bbd7e5dd04bc1f6f70843e17b8
parent79f7254a14a237c0bf54b4f8658556af38b5c781
tune2fs: fix quota enablement regression

Commit 5c2a665afa (Avoid dereferencing beyond allocated memory in quota
handling) induced a quota enablement regression in tune2fs.  Attempts
to enable a particular quota type (tune2fs -O project <dev>, for
example) set the appropriate feature flag in the superblock but the
quota file for the type is not initialized.

The regression prevents the current version of xfstests from running
generic/383, 384, 385, and 386 (all project quota tests) with e2fsprogs
1.43.4.  These tests exit with the message "Installed kernel does not
support project quotas", but the actual problem is that the project
quota file is not present.

Signed-off-by: Eric Whitney <enwlinux@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c