From 487d7438fe1f29335fc4f8b73aa02145af825783 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Mon, 7 Oct 2024 17:18:13 -0700 Subject: [PATCH] LU-16390 tests: check Lustre filefrag in sanity-flr/49a Check that a Lustre-patched filefrag is installed when running sanity-flr test_49a. Lustre-change: https://review.whamcloud.com/49386 Lustre-commit: 37f18670e49b8150170f9b724b5f7089fa176c4e Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: Ic909ea4ca160d47480004f53a96ce7539ce5076c Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56605 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Alex Deiter Reviewed-by: Oleg Drokin --- lustre/tests/sanity-flr.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lustre/tests/sanity-flr.sh b/lustre/tests/sanity-flr.sh index a19669c..d8dabf7 100644 --- a/lustre/tests/sanity-flr.sh +++ b/lustre/tests/sanity-flr.sh @@ -2479,7 +2479,11 @@ cleanup_49() { } test_49a() { - [ "$OSTCOUNT" -lt "2" ] && skip_env "needs >= 2 OSTs" + (( "$OSTCOUNT" >= "2" )) || skip "needs >= 2 OSTs" + local filefrag_op=$(filefrag -l 2>&1 | grep "invalid option") + [[ -z "$filefrag_op" ]] || skip_env "filefrag missing logical ordering" + [[ "$ost1_FSTYPE" != "zfs" ]] || + skip "LU-1941: FIEMAP unimplemented on ZFS" trap cleanup_49 EXIT RETURN -- 1.8.3.1