Whamcloud - gitweb
LU-4017 tune2fs: fix BUGs of tuning project quota 81/26581/14
authorWang Shilong <wshilong@ddn.com>
Thu, 13 Apr 2017 06:41:20 +0000 (02:41 -0400)
committerAndreas Dilger <andreas.dilger@intel.com>
Tue, 25 Apr 2017 09:34:18 +0000 (09:34 +0000)
commita21925594cd18569f6618c02ea7b28c4afab477b
tree1f7fc32cd595c020fbcddaec6e62409bc2c753f4
parent5730e722ef557ce0e83128cba349317f67e8260d
LU-4017 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.

Change-Id: I85a3d504c3619b219af8a711f8f9a3d22b9715db
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/26581
Tested-by: Jenkins
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
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]