From: Hongchao Zhang Date: Tue, 12 Dec 2023 10:37:22 +0000 (+0800) Subject: LU-16397 test: check quota setting on QSD X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=e98334c21a56bb2c07189d94c1b1c20c97c41b53;p=fs%2Flustre-release.git LU-16397 test: check quota setting on QSD In some case, the quota setting at QMT could not be transfered to QSD in time, which could cause the test to fail. This patch adds check on QSD after setting the quota limit by LFS. Lustre-change: https://review.whamcloud.com/49533/ Lustre-commit: TBD (from 76a7ad75740639b9255c51277ff65ce261379af6) Test-Parameters: trivial testlist=sanity-quota Change-Id: Ia999317a36a0f97c1f66726cdc10e9edac3d8a53 Signed-off-by: Hongchao Zhang Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53402 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 877b486..b6737d5 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -1139,9 +1139,11 @@ test_1h() { local used=$(getquota -u $TSTUSR global curspace) [ $used -ne 0 ] && error "Used space($used) for user $TSTUSR isn't 0." - $LFS setstripe $testfile -c 1 || error "setstripe $testfile failed" + $LFS setstripe $testfile -i 0 -c 1 || error "setstripe $testfile failed" chown $TSTUSR.$TSTUSR $testfile || error "chown $testfile failed" + wait_quota_synced ost1 OST0000 usr $TSTID hardlimit $((limit*1024)) + check_write_fallocate $testfile "user" $limit rm -f $testfile