Whamcloud - gitweb
tune2fs: fix BUGs of tuning project quota
authorWang shilong <wangshilong1991@gmail.com>
Tue, 30 May 2017 00:36:51 +0000 (20:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 30 May 2017 00:41:54 +0000 (20:41 -0400)
commit245831ad9abc725518c3c9506460e1a25446a27e
treecfc195b78e08ec99f0fb93c39ad0780c92dfd561
parent0c574883dda4a44eeb4586fd7784373de3d8c030
tune2fs: fix BUGs of tuning project quota

There are several problems for project quota enable/disable:
tune2fs -O ^project did not work, because @clear_ok_features
did not include @EXT4_FEATURE_RO_COMPAT_PROJECT.

update_feature_set() works for -O option, but tune2fs -Q prj/^prj
did not work well, because function handle_quota_options()
did not set and clear @EXT4_FEATURE_RO_COMPAT_PROJECT feature very well.

one warning message is removed, because with project feature
enabled, quota feature will be enabled automatically.

Signed-off-by: Wang Shilong <wshilong@ddn.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/tune2fs.c
tests/t_project_1on/name [new file with mode: 0644]
tests/t_project_1on/script [new file with mode: 0644]
tests/t_project_2off/name [new file with mode: 0644]
tests/t_project_2off/script [new file with mode: 0644]
tests/t_project_3on/name [new file with mode: 0644]
tests/t_project_3on/script [new file with mode: 0644]
tests/t_project_4off/name [new file with mode: 0644]
tests/t_project_4off/script [new file with mode: 0644]