From 03402f45086f79b5f003ad76e93263cead84d9ea Mon Sep 17 00:00:00 2001 From: Fan Yong Date: Sun, 29 Aug 2010 20:28:44 +0400 Subject: [PATCH] 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 --- lustre/tests/sanity-quota.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 1.8.3.1