Skip to content
Snippets Groups Projects
Commit e43ae2d4 authored by Elena Gryaznova's avatar Elena Gryaznova
Browse files

b=14148

i=Adilger

match sanity-quota to t-f; check_runas_id() modification
parent 13b68c0f
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -132,7 +132,7 @@ else
[ $RUNAS_ID -eq 0 ] && error "\$RUNAS_ID set to 0, but \$UID is also 0!"
fi
check_runas_id
check_runas_id $RUNAS_ID $RUNAS
build_test_filter
......
......@@ -67,7 +67,7 @@ OSTCOUNT=`cat $LPROC/lov/$LOVNAME/numobd`
rm -rf $DIR1/[df][0-9]* $DIR1/lnk
check_runas_id
check_runas_id $RUNAS_ID $RUNAS
build_test_filter
......
......@@ -1213,12 +1213,15 @@ is_patchless ()
}
check_runas_id() {
local myRUNAS_ID=$1
shift
local myRUNAS=$@
mkdir $DIR/d0_runas_test
chmod 0755 $DIR
chown $RUNAS_ID:$RUNAS_ID $DIR/d0_runas_test
$RUNAS touch $DIR/d0_runas_test/f$$ || \
error "unable to write to $DIR/d0_runas_test as UID $RUNAS_ID.
chown $myRUNAS_ID:$myRUNAS_ID $DIR/d0_runas_test
$myRUNAS touch $DIR/d0_runas_test/f$$ || \
error "unable to write to $DIR/d0_runas_test as UID $myRUNAS_ID.
Please set RUNAS_ID to some UID which exists on MDS and client or
add user $RUNAS_ID:$RUNAS_ID on these nodes."
add user $myRUNAS_ID:$myRUNAS_ID on these nodes."
rm -rf $DIR/d0_runas_test
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment