summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-03-27 19:28:43 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-27 23:16:52 +0100
commit37d603268f98ba51d9fd9c734004274de8fcca1b (patch)
tree1be6eb70364725f4d6e413c4cb5aff11abfdbd66
parentf07a793813a51bd792f7a5a5e290a6727100aaca (diff)
downloadlvm2-37d603268f98ba51d9fd9c734004274de8fcca1b.tar.gz
tests: for 4.18 use already 1.20 logic
Looks like there was some missed versioning increase during devel. So with kernel >= 4.18 version 1.19 is enough to look like 1.20 However backported 1.19 targets seems to not provide all the capabilities.
-rw-r--r--test/shell/thin-flags.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/shell/thin-flags.sh b/test/shell/thin-flags.sh
index 6e5749a74..0b3148a9c 100644
--- a/test/shell/thin-flags.sh
+++ b/test/shell/thin-flags.sh
@@ -98,7 +98,10 @@ not lvcreate -V10 -n $lv3 $vg/pool
lvs -ao+seg_pe_ranges $vg
# needs_check needs newer version
-if aux have_thin 1 20 0 ; then
+THINMINVER="1 20 0"
+aux kernel_at_least 4.18 && THINMINVER="1 19 0" # kernel >=4.18 already had changes from 1.20
+
+if aux have_thin $THINVER ; then
check lv_attr_bit state $vg/pool "a"
dmsetup suspend $vg-pool-tpool