Whamcloud - gitweb
LU-16397 test: check quota setting on QSD
[fs/lustre-release.git] / lustre / tests / sanity-quota.sh
index 718a954..183b9b1 100755 (executable)
@@ -1166,9 +1166,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