Whamcloud - gitweb
b=22415 cut off the "*" mark at the end of digital string for quota usage when out...
authorFan Yong <Yong.Fan@sun.com>
Sun, 29 Aug 2010 16:28:44 +0000 (20:28 +0400)
committerMikhail Pershin <tappro@sun.com>
Sun, 29 Aug 2010 19:40:44 +0000 (23:40 +0400)
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

index 9b548cf..fb50169 100644 (file)
@@ -267,7 +267,7 @@ getquota() {
 
         [ "$uuid" = "global" ] && uuid=$DIR
 
 
         [ "$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() {
 }
 
 quota_show_check() {