Whamcloud - gitweb
LU-14321 tests: create PFL file in sanityn 51b 27/44027/4
authorJames Nunez <jnunez@whamcloud.com>
Thu, 17 Jun 2021 23:25:55 +0000 (17:25 -0600)
committerOleg Drokin <green@whamcloud.com>
Wed, 25 Aug 2021 06:22:52 +0000 (06:22 +0000)
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 <jnunez@whamcloud.com>
Change-Id: Ic3feb72771aa2db050b792159175624260e71f5b
Reviewed-on: https://review.whamcloud.com/44027
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Yingjin Qian <qian@ddn.com>
lustre/tests/sanityn.sh

index acecb8c..d433294 100755 (executable)
@@ -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 ||