From: Niu Yawei Date: Fri, 7 Feb 2014 12:13:51 +0000 (-0500) Subject: LU-4598 quota: fix s-q test_30 X-Git-Tag: 2.5.56~11 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=fa78155704a9a18dac935995204858c4aa8632fd LU-4598 quota: fix s-q test_30 After LU-4139 landed, the block grace time isn't accurate as before, the s-q test_30 should now write more bytes to make sure the spare quota allocated on slave be used up. Signed-off-by: Niu Yawei Change-Id: Iee14721051b9e41074a13f11afb11a7b286352c2 Reviewed-on: http://review.whamcloud.com/9177 Tested-by: Jenkins Reviewed-by: Fan Yong Tested-by: Maloo Reviewed-by: Johann Lombardi --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 4bc5bab..dd82d99 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2062,11 +2062,11 @@ test_30() { # over-quota flag has not yet settled since we do not trigger async # events based on grace time period expiration $SHOW_QUOTA_USER - $RUNAS $DD of=$TESTFILE conv=notrunc oflag=append count=1 || true + $RUNAS $DD of=$TESTFILE conv=notrunc oflag=append count=4 || true cancel_lru_locks osc # now over-quota flag should be settled and further writes should fail $SHOW_QUOTA_USER - $RUNAS $DD of=$TESTFILE conv=notrunc oflag=append count=1 && + $RUNAS $DD of=$TESTFILE conv=notrunc oflag=append count=4 && error "grace times were reset" # cleanup cleanup_quota_test