[lvm-devel] master - tests: check vgsplit thin-data and ext.origin

Marian Csontos mcsontos at sourceware.org
Tue Feb 27 13:38:36 UTC 2018


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=32bcdd90ae7c847e7b4fc5cc5184c581a4f6484a
Commit:        32bcdd90ae7c847e7b4fc5cc5184c581a4f6484a
Parent:        8e5305f630be818e677572e4c43d2c728a89f54f
Author:        Marian Csontos <mcsontos at redhat.com>
AuthorDate:    Tue Feb 27 13:45:39 2018 +0100
Committer:     Marian Csontos <mcsontos at redhat.com>
CommitterDate: Tue Feb 27 14:37:47 2018 +0100

tests: check vgsplit thin-data and ext.origin

---
 test/shell/vgsplit-thin.sh |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/test/shell/vgsplit-thin.sh b/test/shell/vgsplit-thin.sh
index 0e4572e..a2d0a0b 100644
--- a/test/shell/vgsplit-thin.sh
+++ b/test/shell/vgsplit-thin.sh
@@ -44,3 +44,23 @@ lvs -a -o+devices $vg1 $vg2
 vgmerge $vg1 $vg2
 
 vgremove -ff $vg1
+
+# Test vgsplit with ext.origin:
+if aux have_thin 1 5 0; then
+vgcreate "$vg1" "${DEVICES[@]}"
+lvcreate -T -L8M $vg1/pool1 -V10M -n $lv1 "$dev1" "$dev2"
+lvcreate -l1 -an -pr -n $lv2 $vg1 "$dev3"
+lvcreate -s $vg1/$lv2 -n $lv3 --thinpool $vg1/pool1
+lvcreate -l1 -n $lv4 $vg1 "$dev4"
+vgchange -an $vg1
+
+# Can not split ext.origin from thin-data:
+not vgsplit $vg1 $vg2 "$dev1" "$dev2"
+not vgsplit $vg1 $vg2 "$dev3"
+
+vgsplit $vg1 $vg2 "$dev1" "$dev2" "$dev3"
+
+vgmerge $vg1 $vg2
+
+vgremove -ff $vg1
+fi




More information about the lvm-devel mailing list