From 45b141f2ed601af8db57a8a1fcc810a92d9cd939 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 7 Jun 2022 14:52:52 -0600 Subject: [PATCH] LU-14838 tests: skip sanityn/32a if no truncate_lock Newer servers do not support truncate_lock since 2.14.53. Skip sanityn.sh test_32a if this feature is not available. Test-Parameters: trivial testlist=sanityn env=ONLY=32a Test-Parameters: clientversion=2.14 testlist=sanityn env=ONLY=32a Fixes: 6335dba839 ("LU-14838 osc: Remove lockless truncate") Signed-off-by: Andreas Dilger Change-Id: Ibe37b59eff2b11a1b5e6ddd7a5c0ba6dae9993f5 Reviewed-on: https://review.whamcloud.com/47554 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Patrick Farrell Reviewed-by: Sarah Liu Reviewed-by: Oleg Drokin --- lustre/tests/sanityn.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index b67b5da..df5ecdc 100755 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -808,6 +808,9 @@ enable_lockless_truncate() { } test_32a() { # bug 11270 + $LCTL get_param osc.*.import | grep -q "connect_flags.*truncate_lock" || + skip "missing truncate_lock support" + local p="$TMP/$TESTSUITE-$TESTNAME.parameters" local stripe_size=$(do_facet $SINGLEMDS \ "$LCTL get_param -n lod.$(facet_svc $SINGLEMDS)*.stripesize") -- 1.8.3.1