summaryrefslogtreecommitdiff
path: root/test/shell/lvconvert-thin-external.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/shell/lvconvert-thin-external.sh')
-rw-r--r--test/shell/lvconvert-thin-external.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/shell/lvconvert-thin-external.sh b/test/shell/lvconvert-thin-external.sh
index 1e9887a9c..479d23cb0 100644
--- a/test/shell/lvconvert-thin-external.sh
+++ b/test/shell/lvconvert-thin-external.sh
@@ -12,8 +12,12 @@
# Test conversion to thin external origin
+export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
+
. lib/inittest
+test -e LOCAL_LVMPOLLD && skip
+
which mkfs.ext2 || skip
which fsck || skip
@@ -53,6 +57,8 @@ lvcreate -l10 -T $vg/pool1 -c 192k
not lvconvert -T --thinpool $vg/pool1 $vg/pool --originname origin
# Create pool1 chunk_size unaligned LV and check failing conversion
lvcreate -l2 -n $lv1 $vg
+# Newer thin-pool target (>= 1.13) supports unaligned external origin
+aux lvmconf 'global/thin_disabled_features = [ "external_origin_extend" ]'
not lvconvert -T --thinpool $vg/pool1 $vg/$lv1
lvremove -f $vg/pool1 $vg/$lv1