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>
$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"