b=19413
i=eric.mei
specify $MOUNT for $LFS flushctx
chmod 0777 $DIR || error "chmod $DIR failed"
# access w/o cred
$RUNAS kdestroy
chmod 0777 $DIR || error "chmod $DIR failed"
# access w/o cred
$RUNAS kdestroy
- $RUNAS $LFS flushctx || error "can't flush ctx"
+ $RUNAS $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
$RUNAS touch $file && error "unexpected success"
# access w/ cred
$RUNAS touch $file && error "unexpected success"
# access w/ cred
# cleanup all cred/ctx and touch
$RUNAS kdestroy
# cleanup all cred/ctx and touch
$RUNAS kdestroy
- $RUNAS $LFS flushctx || error "can't flush ctx"
+ $RUNAS $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
$RUNAS touch $file2 && error "unexpected success"
# restore and touch
$RUNAS touch $file2 && error "unexpected success"
# restore and touch
# metadata check should fail, but file data check should success
# because we always use root credential to OSTs
$RUNAS kdestroy
# metadata check should fail, but file data check should success
# because we always use root credential to OSTs
$RUNAS kdestroy
+ $RUNAS $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
echo "destroied credentials/contexs for $RUNAS_ID"
$RUNAS $CHECKSTAT -p 0666 $file && error "checkstat succeed"
kill -s 10 $OPPID
echo "destroied credentials/contexs for $RUNAS_ID"
$RUNAS $CHECKSTAT -p 0666 $file && error "checkstat succeed"
kill -s 10 $OPPID
check_gss_daemon_facet client lgssd && error "lgssd still running"
# flush context, and touch
check_gss_daemon_facet client lgssd && error "lgssd still running"
# flush context, and touch
+ $RUNAS $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
$RUNAS touch $file2 &
TOUCHPID=$!
echo "waiting touch pid $TOUCHPID"
$RUNAS touch $file2 &
TOUCHPID=$!
echo "waiting touch pid $TOUCHPID"
check_gss_daemon_facet mds lsvcgssd && error "lsvcgssd still running"
# flush context, and touch
check_gss_daemon_facet mds lsvcgssd && error "lsvcgssd still running"
# flush context, and touch
+ $RUNAS $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
$RUNAS touch $file2 &
TOUCHPID=$!
$RUNAS touch $file2 &
TOUCHPID=$!
#define OBD_FAIL_SEC_CTX_HDL_PAUSE 0x1204
do_facet mds lctl set_param fail_loc=0x1204
#define OBD_FAIL_SEC_CTX_HDL_PAUSE 0x1204
do_facet mds lctl set_param fail_loc=0x1204
- $RUNAS $LFS flushctx || error "can't flush ctx"
+ $RUNAS $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
$RUNAS touch $DIR/d8/f &
TOUCHPID=$!
$RUNAS touch $DIR/d8/f &
TOUCHPID=$!
sleep 2
check_dbench
echo "flush ctx ($n/$total) ..."
sleep 2
check_dbench
echo "flush ctx ($n/$total) ..."
+ $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
done
check_dbench
#sleep to let ctxs be re-established
done
check_dbench
#sleep to let ctxs be re-established