CHECK_GRANT=${CHECK_GRANT:-"yes"}
GRANT_CHECK_LIST=${GRANT_CHECK_LIST:-""}
+remote_mds_nodsh && log "SKIP: remote MDS with nodsh" && exit 0
# Skip these tests
# bug number: 17466
run_test 0a "empty replay"
test_0b() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
# this test attempts to trigger a race in the precreation code,
# and must run before any other objects are created on the filesystem
fail ost1
# timeout in MDS/OST recovery RPC will LBUG MDS
test_43() { # bug 2530
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
replay_barrier $SINGLEMDS
# OBD_FAIL_OST_CREATE_NET 0x204
run_test 46 "Don't leak file handle after open resend (3325)"
test_47() { # bug 2824
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
# create some files to make sure precreate has been done on all
# OSTs. (just in case this test is run independently)
createmany -o $DIR/$tfile 20 || return 1
run_test 47 "MDS->OSC failure during precreate cleanup (2824)"
test_48() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
replay_barrier $SINGLEMDS
createmany -o $DIR/$tfile 20 || return 1
# OBD_FAIL_OST_EROFS 0x216
# log_commit_thread vs filter_destroy race used to lead to import use after free
# bug 11658
test_59() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
mkdir -p $DIR/$tdir
createmany -o $DIR/$tdir/$tfile-%d 200
sync
#test race llog recovery thread vs llog cleanup
test_61a() { # was test_61
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
mkdir $DIR/$tdir
createmany -o $DIR/$tdir/$tfile-%d 800
replay_barrier ost1
#test race cancel cookie cb vs llog cleanup
test_61c() {
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
# OBD_FAIL_OST_CANCEL_COOKIE_TIMEOUT 0x222
touch $DIR/$tfile
set_nodes_failloc "$(osts_nodes)" 0x80000222
test_65a() #bug 3055
{
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
at_start || return 0
$LCTL dk > /dev/null
debugsave
test_65b() #bug 3055
{
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
at_start || return 0
# turn on D_ADAPTTO
debugsave
test_66a() #bug 3055
{
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
at_start || return 0
lctl get_param -n mdc.${FSNAME}-MDT0000-mdc-*.timeouts | grep "portal 12"
# adjust 5s at a time so no early reply is sent (within deadline)
test_66b() #bug 3055
{
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
at_start || return 0
ORIG=$(lctl get_param -n mdc.${FSNAME}-*.timeouts | awk '/network/ {print $4}')
sysctl -w lustre.fail_val=$(($ORIG + 5))
test_67a() #bug 3055
{
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
at_start || return 0
CONN1=$(lctl get_param -n osc.*.stats | awk '/_connect/ {total+=$2} END {print total}')
# sleeping threads may drive values above this
test_67b() #bug 3055
{
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
at_start || return 0
CONN1=$(lctl get_param -n osc.*.stats | awk '/_connect/ {total+=$2} END {print total}')
#define OBD_FAIL_OST_PAUSE_CREATE 0x223
test_68 () #bug 13813
{
+ remote_ost_nodsh && skip "remote OST with nodsh" && return 0
+
at_start || return 0
local ldlm_enqueue_min=$(find /sys -name ldlm_enqueue_min)
[ -z "$ldlm_enqueue_min" ] && skip "missing /sys/.../ldlm_enqueue_min" && return 0