Whamcloud - gitweb
LU-10795 quota: fix wrong skipping of reintegration 13/32013/3
authorWang Shilong <wshilong@ddn.com>
Fri, 9 Mar 2018 07:38:51 +0000 (15:38 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 3 May 2018 19:59:34 +0000 (19:59 +0000)
commitc7d1b0b51db29870f5bafb150c79afa913aa398a
tree2f95898b0ab76202747c57f5baa79a80447ce664
parente4e106058f8dcacbe6ae2905cf5e16d4c6f0858c
LU-10795 quota: fix wrong skipping of reintegration

There are two problems addressed by this patch:
1)In qsd_prepare(), if @qqi_acct_failed is true,
that only means one type of quota failed, Quota
should continue to handle.
2)In qsd_config(), only trigger reintegration if
this type of quota is newly enabled, this could
fix annoying messages when admin running

$ lctl conf_param lustre.quota.mdt=ug

LustreError: 0-0: lustre-MDT0000: can't enable
quota enforcement since space accounting isn't
functional. Please run tunefs.lustre --quota on
an unmounted filesystem if not done already

Lustre-change: https://review.whamcloud.com/31607
Lustre-commit: 7a216e31b74ef0b825adf36eed5f636da8b07533

Change-Id: I9bad618e7e8fa836902cac9f446714cd6c03f98a
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/32013
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/quota/qsd_config.c
lustre/quota/qsd_lib.c