From 3a2f24fefbc8c4b6e98dfd6ba9957326ea0e7a97 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Tue, 12 Sep 2017 12:30:14 -0700 Subject: [PATCH] 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 --- lustre/tests/sanity-quota.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } -- 1.8.3.1