Whamcloud - gitweb
LU-16390 tests: check Lustre filefrag in sanity-flr/49a
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 13 Dec 2022 07:01:06 +0000 (00:01 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 4 Jan 2023 20:39:26 +0000 (20:39 +0000)
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 <adilger@whamcloud.com>
Change-Id: Ic909ea4ca160d47480004f53a96ce7539ce5076c
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Colin Faber <cfaber@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49503
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity-flr.sh

index 0bb6a34..90b9cdd 100644 (file)
@@ -2552,7 +2552,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