From: Wei Liu Date: Tue, 12 Sep 2017 19:30:14 +0000 (-0700) Subject: LU-9158 test: Use project ID for project quota for quota_scan X-Git-Tag: 2.10.55~56 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=3a2f24fefbc8c4b6e98dfd6ba9957326ea0e7a97;p=fs%2Flustre-release.git LU-9158 test: Use project ID for project quota for quota_scan Use project ID instead of quota user for project quota in function quota_scan. This is not a fix for the rebalancing error, only correct the test script issue. Change-Id: I9165ada17de0f32ac38f720a5e9e9be46363b41f Signed-off-by: Wei Liu Reviewed-on: https://review.whamcloud.com/28957 Reviewed-by: Wang Shilong Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Nunez Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index f6f0f2b..4a90ace 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -160,9 +160,9 @@ quota_scan() { fi if [ "$local_ugp" == "a" -o "$local_ugp" == "p" ]; then - $LFS quota -v -p $local_id $DIR - log "Files for project ($local_id):" - ($LFS find --projid $local_id $DIR | head -n 4 | + $LFS quota -v -p $TSTPRJID $DIR + log "Files for project ($TSTPRJID):" + ($LFS find --projid $TSTPRJID $DIR | head -n 4 | xargs stat 2>/dev/null) fi }