From: tianzy Date: Thu, 3 Sep 2009 02:25:49 +0000 (+0000) Subject: Branch b1_8(1.8.2) X-Git-Tag: v1_8_2_01~1^2~140 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b26a9b5c6d741c663ea33ba8f86a5312f0220aef;p=fs%2Flustre-release.git Branch b1_8(1.8.2) fix a rare error in test_25 of sanity-quota.sh b=20433 i=yong.fan i=panda --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 78a6315..27c257a 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2035,6 +2035,8 @@ test_25_sub() { [ $MDS_QUOTA_USED2_NEW -ne $((MDS_QUOTA_USED2_OLD + 1)) ] && \ quota_error a $TSTUSR2 "$TSTUSR2 inode quota usage transfer from $TSTUSR to $TSTUSR2 failed: [$MDS_QUOTA_USED2_OLD|$MDS_QUOTA_USED2_NEW]" OST0_QUOTA_USED2_NEW=`$LFS quota -o $OST0_UUID $1 $TSTUSR2 $DIR | awk '/^.*[[:digit:]+][[:space:]+]/ { print $1 }'` + # when chown, the quota on ost could be displayed out of quota temporarily. Delete the '*' in this situation. b=20433 + OST0_QUOTA_USED2_NEW=${OST0_QUOTA_USED2_NEW%\*} OST0_QUOTA_USED2_DELTA=$((OST0_QUOTA_USED2_NEW - OST0_QUOTA_USED2_OLD)) [ $OST0_QUOTA_USED2_DELTA -ne $OST0_QUOTA_USED_DELTA ] && \ quota_error a $TSTUSR2 "$TSTUSR2 block quota usage transfer from $TSTUSR to $TSTUSR2 failed: [$OST0_QUOTA_USED2_OLD|$OST0_QUOTA_USED2_NEW]"