From: Fan Yong Date: Sun, 29 Aug 2010 16:28:44 +0000 (+0400) Subject: b=22415 cut off the "*" mark at the end of digital string for quota usage when out... X-Git-Tag: 2.0.51.0~22 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=03402f45086f79b5f003ad76e93263cead84d9ea;p=fs%2Flustre-release.git b=22415 cut off the "*" mark at the end of digital string for quota usage when out of quota cut off the "*" mark at the end of digital string for quota usage when out of quota. i=grev i=landen --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 9b548cf..fb50169 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -267,7 +267,7 @@ getquota() { [ "$uuid" = "global" ] && uuid=$DIR - $LFS quota -v "$1" "$2" $DIR | awk 'BEGIN { num='$spec' } { if ($1 == "'$uuid'") { if (NF == 1) { getline } else { num++ } ; print $num;} }' + $LFS quota -v "$1" "$2" $DIR | awk 'BEGIN { num='$spec' } { if ($1 == "'$uuid'") { if (NF == 1) { getline } else { num++ } ; print $num;} }' | tr -d "*" } quota_show_check() {