Skip to contentSkip to conversation

master - tests: cache snapshot

PATCH Zdenek Kabelac 1 participant 1 message Nov 10, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=10ebabdd2a8c686d814205fd923229572eebdd3a
Commit:        10ebabdd2a8c686d814205fd923229572eebdd3a
Parent:        02f49caa3599d74ff9ef850d76fec69569ef9621
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Nov 4 23:24:56 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Nov 10 22:05:49 2014 +0100

tests: cache snapshot

---
 test/shell/lvconvert-cache.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
test/shell/lvconvert-cache.sh +8 -0
index 4f266ba..ed414ed 100644
@@ -17,6 +17,14 @@ aux have_cache 1 3 0 || skip
 
 aux prepare_vg 5 80
 
+lvcreate --type cache-pool -an -v -L 2 -n cpool $vg
+lvcreate -H -L 4 -n corigin --cachepool $vg/cpool
+
+fail lvcreate -s -L2 $vg/corigin
+fail lvcreate -s -L2 $vg/cpool
+fail lvcreate -s -L2 $vg/cpool_cdata
+fail lvcreate -s -L2 $vg/cpool_cmeta
+
 ###########################
 # Check regular converion #
 ###########################