# Bug 113, check that readdir lost send timeout works.
test_14() {
- mkdir -p $DIR/$tdir
+ mkdir_on_mdt0 $DIR/$tdir
touch $DIR/$tdir/newentry
# OBD_FAIL_MDS_SENDPAGE|OBD_FAIL_ONCE
do_facet $SINGLEMDS "lctl set_param fail_loc=0x80000106"
run_test 20b "ldlm_handle_enqueue error (should return error)"
test_21a() {
- mkdir -p $DIR/$tdir-1
- mkdir -p $DIR/$tdir-2
+ mkdir_on_mdt0 $DIR/$tdir-1
+ mkdir_on_mdt0 $DIR/$tdir-2
multiop_bg_pause $DIR/$tdir-1/f O_c || return 1
close_pid=$!
run_test 21a "drop close request while close and open are both in flight"
test_21b() {
- mkdir -p $DIR/$tdir-1
- mkdir -p $DIR/$tdir-2
+ mkdir_on_mdt0 $DIR/$tdir-1
+ mkdir_on_mdt0 $DIR/$tdir-2
multiop_bg_pause $DIR/$tdir-1/f O_c || return 1
close_pid=$!
run_test 21b "drop open request while close and open are both in flight"
test_21c() {
- mkdir -p $DIR/$tdir-1
- mkdir -p $DIR/$tdir-2
+ mkdir_on_mdt0 $DIR/$tdir-1
+ mkdir_on_mdt0 $DIR/$tdir-2
multiop_bg_pause $DIR/$tdir-1/f O_c || return 1
close_pid=$!
run_test 21c "drop both request while close and open are both in flight"
test_21d() {
- mkdir -p $DIR/$tdir-1
- mkdir -p $DIR/$tdir-2
+ mkdir_on_mdt0 $DIR/$tdir-1
+ mkdir_on_mdt0 $DIR/$tdir-2
multiop_bg_pause $DIR/$tdir-1/f O_c || return 1
pid=$!
run_test 21d "drop close reply while close and open are both in flight"
test_21e() {
- mkdir -p $DIR/$tdir-1
- mkdir -p $DIR/$tdir-2
+ mkdir_on_mdt0 $DIR/$tdir-1
+ mkdir_on_mdt0 $DIR/$tdir-2
multiop_bg_pause $DIR/$tdir-1/f O_c || return 1
pid=$!
run_test 21e "drop open reply while close and open are both in flight"
test_21f() {
- mkdir -p $DIR/$tdir-1
- mkdir -p $DIR/$tdir-2
+ mkdir_on_mdt0 $DIR/$tdir-1
+ mkdir_on_mdt0 $DIR/$tdir-2
multiop_bg_pause $DIR/$tdir-1/f O_c || return 1
pid=$!
run_test 21f "drop both reply while close and open are both in flight"
test_21g() {
- mkdir -p $DIR/$tdir-1
- mkdir -p $DIR/$tdir-2
+ mkdir_on_mdt0 $DIR/$tdir-1
+ mkdir_on_mdt0 $DIR/$tdir-2
multiop_bg_pause $DIR/$tdir-1/f O_c || return 1
pid=$!
run_test 21g "drop open reply and close request while close and open are both in flight"
test_21h() {
- mkdir -p $DIR/$tdir-1
- mkdir -p $DIR/$tdir-2
+ mkdir_on_mdt0 $DIR/$tdir-1
+ mkdir_on_mdt0 $DIR/$tdir-2
multiop_bg_pause $DIR/$tdir-1/f O_c || return 1
pid=$!