From: Jian Yu Date: Wed, 28 Dec 2022 18:08:20 +0000 (-0800) Subject: LU-16434 tests: replace '-m' with '-i' in sanity/230j X-Git-Tag: 2.15.54~153 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=ab115a8ec9827b9593bf2d78f77fd856083abbef;p=fs%2Flustre-release.git LU-16434 tests: replace '-m' with '-i' in sanity/230j 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 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49523 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Lai Siyao Reviewed-by: Andreas Dilger --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 9ebd48b..d9fb018 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -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