From d96307881be892417eb6d2db8cdaa996b596c217 Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Sat, 8 Jul 2023 16:35:43 -0400 Subject: [PATCH] LU-15553 test: mkdir_on_mdt0 in recovery-small.sh Many subtests in recovery-small.sh requires test dir be created on MDT0, replace mkdir with mkdir_on_mdt0. Fixes: b9c4dc3c33 ("LU-14792 llite: enable filesystem-wide default LMV") Lustre-change: https://review.whamcloud.com/51669 Lustre-commit: 3b0d2821845cf87ae7f03bf41ceae00237d94121 Test-Parameters: trivial Test-Parameters: testlist=recovery-small,recovery-small,recovery-small Test-Parameters: mdscount=2 mdtcount=4 testlist=recovery-small,recovery-small,recovery-small Signed-off-by: Lai Siyao Change-Id: Ibc37b2dd25bcd94794392f5ff8a79df2e7932dcc Reviewed-by: Andreas Dilger Reviewed-by: Alex Deiter Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55059 Tested-by: jenkins Tested-by: Maloo --- lustre/tests/recovery-small.sh | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lustre/tests/recovery-small.sh b/lustre/tests/recovery-small.sh index ecd883a..e799ac6 100755 --- a/lustre/tests/recovery-small.sh +++ b/lustre/tests/recovery-small.sh @@ -378,7 +378,7 @@ run_test 13 "mdc_readpage restart test (bug 1138)" # 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" @@ -774,8 +774,8 @@ test_20b() { # bug 2986 - ldlm_handle_enqueue error during open 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=$! @@ -800,8 +800,8 @@ test_21a() { 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=$! @@ -823,8 +823,8 @@ test_21b() { 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=$! @@ -849,8 +849,8 @@ test_21c() { 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=$! @@ -873,8 +873,8 @@ test_21d() { 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=$! @@ -895,8 +895,8 @@ test_21e() { 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=$! @@ -918,8 +918,8 @@ test_21f() { 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=$! @@ -941,8 +941,8 @@ test_21g() { 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=$! -- 1.8.3.1