From f31c48578b62d939d6124b342a42c4d93be7677d Mon Sep 17 00:00:00 2001 From: anserper Date: Wed, 3 Dec 2008 17:29:16 +0000 Subject: [PATCH] Branch b1_8_gate b=17770 i=Elena Gryaznova avoid using quota_usr/quota_2usr groups --- lustre/tests/test-framework.sh | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index a23be86..cc384e8 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -1743,28 +1743,30 @@ get_stripe () { check_runas_id_ret() { local myRC=0 - local myRUNAS_ID=$1 - shift + local myRUNAS_UID=$1 + local myRUNAS_GID=$2 + shift 2 local myRUNAS=$@ if [ -z "$myRUNAS" ]; then error_exit "myRUNAS command must be specified for check_runas_id" fi mkdir $DIR/d0_runas_test chmod 0755 $DIR - chown $myRUNAS_ID:$myRUNAS_ID $DIR/d0_runas_test + chown $myRUNAS_UID:$myRUNAS_GID $DIR/d0_runas_test $myRUNAS touch $DIR/d0_runas_test/f$$ || myRC=1 rm -rf $DIR/d0_runas_test return $myRC } check_runas_id() { - local myRUNAS_ID=$1 - shift + local myRUNAS_UID=$1 + local myRUNAS_GID=$2 + shift 2 local myRUNAS=$@ - check_runas_id_ret $myRUNAS_ID $myRUNAS || \ - error "unable to write to $DIR/d0_runas_test as UID $myRUNAS_ID. + check_runas_id_ret $myRUNAS_UID $myRUNAS_GID $myRUNAS || \ + error "unable to write to $DIR/d0_runas_test as UID $myRUNAS_UID. Please set RUNAS_ID to some UID which exists on MDS and client or - add user $myRUNAS_ID:$myRUNAS_ID on these nodes." + add user $myRUNAS_UID:$myRUNAS_GID on these nodes." } # Run multiop in the background, but wait for it to print -- 1.8.3.1