Whamcloud - gitweb
LU-15694 quota: keep grace time while setting default limits 35/46935/11
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 28 Jul 2022 13:54:00 +0000 (21:54 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 1 Sep 2022 05:53:54 +0000 (05:53 +0000)
commitd4978678b49102226a79a6c8e5d10075d416977d
tree8da780d9de5de0cbef6f9732b1d581a9761665b4
parentb515c6ec2ab84598c77c65eb78f1afd5e67b1ede
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.

Signed-off-by: Hongchao Zhag <hongchao@whamcloud.com>
Change-Id: I89ca49d09dc41deffe4bc77e53721b5bb4f4be37
Reviewed-on: https://review.whamcloud.com/46935
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/quota/qmt_entry.c
lustre/quota/qmt_handler.c
lustre/tests/sanity-quota.sh
lustre/utils/lfs.c