Whamcloud - gitweb
LU-15694 quota: keep grace time while setting default limits
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 28 Jul 2022 13:54:00 +0000 (21:54 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 9 Sep 2022 01:32:43 +0000 (01:32 +0000)
commitbba7d696d0ee0a4917d38b9a765bbd3ce25b1692
tree250d3911e2212f3de7b09f8eb07bbd5421ef1907
parenta5d37152f6dff03a9c5d6ece4a8dae79491d794c
LU-15694 quota: keep grace time while setting default limits

The quota grace time should only be changed by "lfs setquota -t",
and it should be kept while setting default quota limits.

This patch also fixes an issue of not saving the grace time while
writing glboal quota record.

Lustre-change: https://review.whamcloud.com/46935
Lustre-commit: d4978678b49102226a79a6c8e5d10075d416977d

Signed-off-by: Hongchao Zhag <hongchao@whamcloud.com>
Change-Id: I89ca49d09dc41deffe4bc77e53721b5bb4f4be37
Reviewed-on: https://review.whamcloud.com/48416
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/quota/qmt_entry.c
lustre/quota/qmt_handler.c
lustre/tests/sanity-quota.sh
lustre/utils/lfs.c