Whamcloud - gitweb
LU-16434 tests: replace '-m' with '-i' in sanity/230j 23/49523/3
authorJian Yu <yujian@whamcloud.com>
Wed, 28 Dec 2022 18:08:20 +0000 (10:08 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 30 Dec 2022 03:27:32 +0000 (03:27 +0000)
In lfs_setdirstripe(), '-m' was originally used for '--mode'.
Fix sanity test_230j to replace '-m 0' with '-i 0' to force
directory creation on MDT0000 as the test expected.

Test-Parameters: trivial mdscount=2 mdtcount=4 \
env=ONLY=230j testlist=sanity

Change-Id: I10d435719f4b29ec47fa06c478caee9fcc8134a5
Fixes: 8deea7888c ("LU-11508 mdt: reject DoM file migration")
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49523
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Lai Siyao <lai.siyao@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/tests/sanity.sh

index 9ebd48b..d9fb018 100755 (executable)
@@ -20648,7 +20648,7 @@ test_230j() {
        [ $MDS1_VERSION -lt $(version_code 2.13.52) ] &&
                skip "Need MDS version at least 2.11.52"
 
-       $LFS mkdir -m 0 -c 1 $DIR/$tdir || error "mkdir $tdir failed"
+       $LFS mkdir -i 0 -c 1 $DIR/$tdir || error "mkdir $tdir failed"
        $LFS setstripe -E 1M -L mdt $DIR/$tdir/$tfile ||
                error "create $tfile failed"
        cat /etc/passwd > $DIR/$tdir/$tfile