From: James Nunez Date: Thu, 17 Jun 2021 23:25:55 +0000 (-0600) Subject: LU-14321 tests: create PFL file in sanityn 51b X-Git-Tag: 2.14.55~96 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=82d1c06b0c12a724817fa82ff4b3ef088679cdff;p=fs%2Flustre-release.git LU-14321 tests: create PFL file in sanityn 51b sanityn test 51b was modified to integrate statx API in Lustre version 2.13.54. When we run version interop testing with servers less than 2.13.54 and later clients, the test will fail. We should modify the test to create a PFL file without the 'extension-size' lfs setstripe option which will allow this test to run with servers less than 2.13.54. Fixes: 3f7853b31ef6 ("LU-10934 llite: integrate statx() API with Lustre") Test-Parameters: trivial Test-Parameters: serverversion=2.12.7 serverdistro=el7.9 env=ONLY=51b testlist=sanityn Signed-off-by: James Nunez Change-Id: Ic3feb72771aa2db050b792159175624260e71f5b Reviewed-on: https://review.whamcloud.com/44027 Tested-by: jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Yingjin Qian --- diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index acecb8c..d433294 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -3059,12 +3059,12 @@ test_51a() { run_test 51a "layout lock: refresh layout should work" test_51b() { - [[ "$MDS1_VERSION" -ge $(version_code 2.3.59) ]] || + (( $MDS1_VERSION >= $(version_code 2.3.59) )) || skip "Need MDS version at least 2.3.59" local tmpfile=`mktemp` - $LFS setstripe -E 1M -c 1 -E -1 --extension-size 64M $DIR1/$tfile || + $LFS setstripe -E 1m -S 1M -c 1 -E -1 -c 1 $DIR1/$tfile || error "Create $DIR1/$tfile failed" dd if=/dev/zero of=$DIR1/$tfile bs=1k count=1 conv=notrunc ||