Whamcloud - gitweb
LU-15553 test: mkdir_on_mdt0 in recovery-small.sh
authorLai Siyao <lai.siyao@whamcloud.com>
Sat, 8 Jul 2023 20:35:43 +0000 (16:35 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 13 May 2024 22:33:52 +0000 (22:33 +0000)
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 <lai.siyao@whamcloud.com>
Change-Id: Ibc37b2dd25bcd94794392f5ff8a79df2e7932dcc
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55059
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/recovery-small.sh

index ecd883a..e799ac6 100755 (executable)
@@ -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=$!