Skip to contentSkip to conversation

master - tests: add inactive pool creation test

PATCH Zdenek Kabelac 1 participant 1 message Mar 11, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=dd690d5fd1253d7559d43c60194ec0139d426d79
Commit:        dd690d5fd1253d7559d43c60194ec0139d426d79
Parent:        4cc5c689b8600fa8490b2f1d60e483362b10c700
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Mar 12 00:25:59 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Mar 12 00:25:59 2014 +0100

tests: add inactive pool creation test

---
 test/shell/lvcreate-thin.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
test/shell/lvcreate-thin.sh +3 -1
index 721f3d1..cfa605e 100644
@@ -173,7 +173,9 @@ not lvcreate --chunksize 32 -l1 -T $vg/pool1
 # Too large chunk size (max is 1GB)
 not lvcreate -L4M --chunksize 2G -T $vg/pool1
 
-lvcreate -L4M -V2G --name lv1 -T $vg/pool1
+# Test creation of inactive pool
+lvcreate -an -L4M -T $vg/pool1
+lvcreate -V2G --name lv1 -T $vg/pool1
 # Origin name is not accepted
 not lvcreate -s $vg/lv1 -L4M -V2G --name $vg/lv4