From 20774faddf64f6e3705dc68206eeab2283206c36 Mon Sep 17 00:00:00 2001 From: Timothy Day Date: Tue, 23 Jan 2024 03:33:27 +0000 Subject: [PATCH] LU-17216 ofd: skip sanity/70a on old OSTs OSTs older than 2.15.59 won't have enable_health_write. So skip the sanity/70a that requires it. Test-Parameters: trivial Test-Parameters: testlist=sanity clientversion=2.15 env=ONLY=70a,ONLY_REPEAT=10 Test-Parameters: testlist=sanity serverversion=2.15 env=ONLY=70a,ONLY_REPEAT=10 Fixes: e383791 ("LU-17216 ofd: make enable_health_write tunable") Signed-off-by: Timothy Day Change-Id: I320f6911e7b7064d49761a022c462b7c20f3a2e1 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/53770 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Alex Deiter --- lustre/tests/sanity.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index b15c2ca..f396747 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -10461,8 +10461,9 @@ test_69() { run_test 69 "verify oa2dentry return -ENOENT doesn't LBUG ======" test_70a() { - # Perform a really simple test of health write - # and health check + # Perform a really simple test of health write and health check + (( $OST1_VERSION >= $(version_code 2.15.59) )) || + skip "OSTs < 2.15.59 doesn't have enable_health_write" local orig_value="$(do_facet ost1 $LCTL get_param -n enable_health_write)" -- 1.8.3.1