From 60faa8a387b32eb21f04ebd7ee0afec4afd3b718 Mon Sep 17 00:00:00 2001 From: James Nunez Date: Thu, 17 Jun 2021 17:25:55 -0600 Subject: [PATCH] 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. Lustre-change: https://review.whamcloud.com/44027 Lustre-commit: 82d1c06b0c12a724817fa82ff4b3ef088679cdff Fixes: 3f7853b31ef6 ("LU-10934 llite: integrate statx() API with Lustre") Test-Parameters: trivial Test-Parameters: serverversion=2.12.6-ddn42 serverdistro=el7.9 env=ONLY=51b testlist=sanityn Signed-off-by: James Nunez Change-Id: Ic3feb72771aa2db050b792159175624260e71f5b Reviewed-by: Andreas Dilger Reviewed-by: Yingjin Qian Reviewed-on: https://review.whamcloud.com/45184 Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanityn.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 8a31bae..3e6bd41 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -3075,12 +3075,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 || -- 1.8.3.1