From: tianzy Date: Thu, 3 Sep 2009 02:25:46 +0000 (+0000) Subject: Branch b_release_1_8_1(1.8.1.1) X-Git-Tag: v1_8_1_1~53 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=da7abac4f74073e579d3f059c83f84b9cfbd4475;p=fs%2Flustre-release.git Branch b_release_1_8_1(1.8.1.1) 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 f3f04e4..3bb9d69 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2026,6 +2026,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]"