From cbd1d05a3b9269f106532e0ee58dd8d380728e14 Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Sun, 25 May 2025 23:47:07 -0700 Subject: [PATCH] LU-18092 test: skip sanity-lfsck read check On some new kernels read on foreign layout doesn't fail yet, skip read failure check in sanity-lfsck test_38. Lustre-change: https://review.whamcloud.com/56224 Lustre-commit: 2ea7a0f1956fe0e00e17c14ce37d1a7c240c5c2b Test-Parameters: trivial clientdistro=sles15sp6 testlist=sanity-lfsck env=ONLY=38,ONLY_REPEAT=30 Signed-off-by: Lai Siyao Change-Id: Ied10a95db217c58383a4082f0bca11c7b47e3276 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59429 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/sanity-lfsck.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity-lfsck.sh b/lustre/tests/sanity-lfsck.sh index 49adb26..ec8c6e1 100644 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -5890,8 +5890,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" -- 1.8.3.1