Whamcloud - gitweb
LU-18092 test: skip sanity-lfsck read check 24/56224/2
authorLai Siyao <lai.siyao@whamcloud.com>
Mon, 2 Sep 2024 02:21:14 +0000 (22:21 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2024 05:51:11 +0000 (05:51 +0000)
On some new kernels read on foreign layout doesn't fail yet, skip
read failure check in sanity-lfsck test_38.

Test-Parameters: trivial testlist=sanity-lfsck env=ONLY=38,ONLY_REPEAT=30
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: Ied10a95db217c58383a4082f0bca11c7b47e3276
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56224
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
Reviewed-by: Alex Deiter
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-lfsck.sh

index 971fdbe..f35c93c 100755 (executable)
@@ -6002,8 +6002,9 @@ test_38()
        $LFS setstripe -c 2 $DIR/$tdir/$tfile &&
                error "$DIR/$tdir/$tfile: setstripe should fail"
 
-       # R/W should fail
-       cat $DIR/$tdir/$tfile && error "$DIR/$tdir/$tfile: read should fail"
+       # R/W should fail, but filemap fix v6.2-rc4-61-g5956592ce337 may be
+       # missing in some kernels, skip read failure check
+       cat $DIR/$tdir/$tfile
        cat /etc/passwd > $DIR/$tdir/$tfile &&
                error "$DIR/$tdir/$tfile: write should fail"