Skip to contentSkip to conversation

master - tests: lvconvert more thin extorg conversions

PATCH Zdenek Kabelac 1 participant 1 message Oct 8, 2013

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=273373bf53b34817481ef2c395c84a7cdf4f1998
Commit:        273373bf53b34817481ef2c395c84a7cdf4f1998
Parent:        7edf61186b6afdcc7ab8b44072818995cef3702b
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Oct 8 13:30:21 2013 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Oct 8 13:42:10 2013 +0200

tests: lvconvert more thin extorg conversions

Add test for conversion of pool and thin lv at the same time.

---
 test/shell/lvconvert-thin-external.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
test/shell/lvconvert-thin-external.sh +8 -0
index a700b37..d9d4d19 100644
@@ -144,5 +144,13 @@ lvs -a -o+origin_size,seg_size,segtype $vg
 lvremove -f $vg/extorg2
 # Only pool is left
 check vg_field $vg lv_count 1
+lvremove -ff $vg
+
+# Test conversion to the pool and thin external at the same time (rhbz #1003461)
+lvcreate -l50 -n pool $vg
+lvcreate -l100 -n thin $vg
+lvconvert --thin --thinpool $vg/pool $vg/thin --originname thin-origin
+check lv_field $vg/thin segtype thin
+check lv_field $vg/thin-origin segtype linear
 
 vgremove -ff $vg