# flush context, and touch
$RUNAS $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
# flush context, and touch
$RUNAS $LFS flushctx $MOUNT || error "can't flush context on $MOUNT"
- $RUNAS touch $file2 &
- TOUCHPID=$!
-
- # wait certain time
- echo "waiting $wait_time seconds for touch pid $TOUCHPID"
- sleep $wait_time
- num=$(ps --no-headers -p $TOUCHPID | wc -l)
- [ $num -eq 1 ] || error "touch already ended ($num)"
- echo "process $TOUCHPID still hanging there... OK"
+ $RUNAS touch $file2 && error 'should fail without lsvcgssd'
# restart lsvcgssd, expect touch suceed
echo "restart lsvcgssd and recovering"
start_gss_daemons $(comma_list $(mdts_nodes)) "$LSVCGSSD -v"
sleep 5
check_gss_daemon_nodes $(comma_list $(mdts_nodes)) lsvcgssd
# restart lsvcgssd, expect touch suceed
echo "restart lsvcgssd and recovering"
start_gss_daemons $(comma_list $(mdts_nodes)) "$LSVCGSSD -v"
sleep 5
check_gss_daemon_nodes $(comma_list $(mdts_nodes)) lsvcgssd
- save_opts=$MOUNTOPT
- MOUNTOPT="$MOUNTOPT,mgssec=krb5p"
- zconf_mount_clients $clients $MOUNT &&
+ mount_opts="${MOUNT_OPTS:+$MOUNT_OPTS,}mgssec=krb5p"
+ zconf_mount_clients $clients $MOUNT $mount_opts &&
- save_opts=$MOUNTOPT
- MOUNTOPT="$MOUNTOPT,mgssec=null"
- zconf_mount_clients $clients $MOUNT ||
+ mount_opts="${MOUNT_OPTS:+$MOUNT_OPTS,}mgssec=null"
+ zconf_mount_clients $clients $MOUNT $mount_opts ||
# mount mgs with default flavor, in current framework it means mgs+mdt1.
# the connection of mgc of mdt1 to mgs is expected fail.
DEVNAME=$(mdsdevname 1)
# mount mgs with default flavor, in current framework it means mgs+mdt1.
# the connection of mgc of mdt1 to mgs is expected fail.
DEVNAME=$(mdsdevname 1)