Skip to contentSkip to conversation

master - tests: lvcreate snapshot usage update

PATCH Zdenek Kabelac 1 participant 1 message Oct 30, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8926230f6e7ac46c5bbed70d3e8efbc43e5b444d
Commit:        8926230f6e7ac46c5bbed70d3e8efbc43e5b444d
Parent:        b58a0f5cd31669e789d6944ced5b42ce7c6f4f74
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Oct 30 23:16:03 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Thu Oct 30 23:58:49 2014 +0100

tests: lvcreate snapshot usage update

---
 test/shell/lvcreate-usage.sh |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
test/shell/lvcreate-usage.sh +9 -1
index 05f2515..5d37d9c 100644
@@ -130,8 +130,16 @@ grep "Redundant" err
 check lv_field $vg/$lv1 segtype "linear"
 lvremove -ff $vg
 
-# Snapshot with virtual origin works
+# Old --type snapshot works with -s
+lvcreate --type snapshot -s -V64 -L32 -n $lv1 $vg
+check lv_field $vg/$lv1 segtype "linear"
+lvcreate --type snapshot -V64 -L32 -n $lv2 $vg
+check lv_field $vg/$lv2 segtype "linear"
+lvremove -ff $vg
+
+# --virtualoriginsize  always makes old snapshot
 lvcreate -s --virtualoriginsize 64m -L 32m -n $lv1 $vg
+check lv_field $vg/$lv1 segtype "linear"
 lvrename $vg/$lv1 $vg/$lv2
 lvcreate -s --virtualoriginsize 64m -L 32m -n $lv1 $vg
 lvchange -a n $vg/$lv1