From 39dd7e0e437d0bc6ba70710d57fce12e8fd98832 Mon Sep 17 00:00:00 2001 From: Andrew Perepechko Date: Tue, 15 Dec 2009 23:22:55 +0300 Subject: [PATCH] b=16890 Reorder tests 29 and 30 Put tests 29 and 30 in natural order --- lustre/tests/sanity-quota.sh | 50 ++++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 021107f..0492c79 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2062,31 +2062,6 @@ test_28() { } run_test_with_stat 28 "test for consistency for qunit when setquota (18574) ===========" -test_30() -{ - local output - local LIMIT=1024 - local TESTFILE="$DIR/$tdir/$tfile" - local GRACE=10 - - mkdir -p $DIR/$tdir - chmod 0777 $DIR/$tdir - - $LFS setquota -t -u --block-grace $GRACE --inode-grace $MAX_IQ_TIME $DIR - $LFS setquota -u $TSTUSR -b $LIMIT -B 0 -i 0 -I 0 $DIR - $RUNAS dd if=/dev/zero of=$TESTFILE bs=1024 count=$((LIMIT * 2)) || true - cancel_lru_locks osc - sleep 5 - $LFS setquota -u $TSTUSR -B 0 $DIR - $SHOW_QUOTA_USER - output=`$SHOW_QUOTA_USER | grep $MOUNT | awk '{ print $5 }' | tr -d s` - [ "$output" -le "$((GRACE - 5))" ] || error "grace times were reset or unexpectedly high latency" - rm -f $TESTFILE - resetquota -u $TSTUSR - $LFS setquota -t -u --block-grace $MAX_DQ_TIME --inode-grace $MAX_IQ_TIME $DIR -} -run_test_with_stat 30 "hard limit updates should not reset grace times ================" - test_29() { local BLK_LIMIT=$((100 * 1024 * 1024)) # 100G @@ -2128,6 +2103,31 @@ test_29() } run_test_with_stat 29 "unhandled quotactls must not hang lustre client (19778) ========" +test_30() +{ + local output + local LIMIT=1024 + local TESTFILE="$DIR/$tdir/$tfile" + local GRACE=10 + + mkdir -p $DIR/$tdir + chmod 0777 $DIR/$tdir + + $LFS setquota -t -u --block-grace $GRACE --inode-grace $MAX_IQ_TIME $DIR + $LFS setquota -u $TSTUSR -b $LIMIT -B 0 -i 0 -I 0 $DIR + $RUNAS dd if=/dev/zero of=$TESTFILE bs=1024 count=$((LIMIT * 2)) || true + cancel_lru_locks osc + sleep 5 + $LFS setquota -u $TSTUSR -B 0 $DIR + $SHOW_QUOTA_USER + output=`$SHOW_QUOTA_USER | grep $MOUNT | awk '{ print $5 }' | tr -d s` + [ "$output" -le "$((GRACE - 5))" ] || error "grace times were reset or unexpectedly high latency" + rm -f $TESTFILE + resetquota -u $TSTUSR + $LFS setquota -t -u --block-grace $MAX_DQ_TIME --inode-grace $MAX_IQ_TIME $DIR +} +run_test_with_stat 30 "hard limit updates should not reset grace times ================" + # turn off quota quota_fini() { -- 1.8.3.1