Whamcloud - gitweb
LU-16428 tests: cache is_project_quota_supported result 99/49499/3
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Dec 2022 00:28:14 +0000 (17:28 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 14 Feb 2023 06:04:36 +0000 (06:04 +0000)
commit90e1f2ee0cb3d5252a3d409f56515c3ed7b9959f
tree4375dcbc0c1d31a3c4fd0beef506e518b525410b
parentd2b633226e1d1420993a02419de73208166842e2
LU-16428 tests: cache is_project_quota_supported result

Rather than is_project_quota_supported() repeatedly checking if the
MDS supports project quota, check the MDS once after mount and then
cache it for the rest of the test run.

In resetquota() there is no need to check is_project_quota_supported()
each time, since this is only called with "-p" when project quota was
previously checked and is enabled.  Also, there is no need to wait 1s
after every quota limit is reset, but rather only once at the end.

Test-Parameters: trivial testlist=sanity-quota mdtcount=4 mdscount=2
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Id98240e2fcd2e862bb4305961a2946227e3ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49499
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-quota.sh
lustre/tests/test-framework.sh