From 2ea7a0f1956fe0e00e17c14ce37d1a7c240c5c2b Mon Sep 17 00:00:00 2001 From: Lai Siyao Date: Sun, 1 Sep 2024 22:21:14 -0400 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. Test-Parameters: trivial 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/+/56224 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Qian Yingjin Reviewed-by: Alex Deiter 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 971fdbe..f35c93c 100755 --- a/lustre/tests/sanity-lfsck.sh +++ b/lustre/tests/sanity-lfsck.sh @@ -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" -- 1.8.3.1