From deb4abf40857aee21225c4c042ecb66fe1fe337a Mon Sep 17 00:00:00 2001 From: Andrew Perepechko Date: Wed, 7 Apr 2010 21:43:53 +0400 Subject: [PATCH] b=20953 a fix for test_30 of sanity-quota lfs calculates time left to the end of a grace period based on current client's time and MDS-based grace period end which can lead to cetain anomalies in lfs output when the client's clock and the MDS' clock are not synchronized. This patch introduces some additional I/O so that grace time decisions and calculations will only be made on the MDS side. i=Elena Gryaznova --- lustre/tests/sanity-quota.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 8b004b2..ee4966a 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2129,11 +2129,10 @@ test_30() $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 + sleep $GRACE $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" + $RUNAS dd if=/dev/zero of=$TESTFILE oflag=append bs=1024 count=1 && error "grace times were reset" rm -f $TESTFILE resetquota -u $TSTUSR $LFS setquota -t -u --block-grace $MAX_DQ_TIME --inode-grace $MAX_IQ_TIME $DIR -- 1.8.3.1