All of lore.kernel.org
 help / color / mirror / Atom feed
* master - tests: check vgsplit thin-data and ext.origin
@ 2018-02-27 13:38 Marian Csontos
  0 siblings, 0 replies; only message in thread
From: Marian Csontos @ 2018-02-27 13:38 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=32bcdd90ae7c847e7b4fc5cc5184c581a4f6484a
Commit:        32bcdd90ae7c847e7b4fc5cc5184c581a4f6484a
Parent:        8e5305f630be818e677572e4c43d2c728a89f54f
Author:        Marian Csontos <mcsontos@redhat.com>
AuthorDate:    Tue Feb 27 13:45:39 2018 +0100
Committer:     Marian Csontos <mcsontos@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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-02-27 13:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27 13:38 master - tests: check vgsplit thin-data and ext.origin Marian Csontos

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.