From 721bee1b70af8089550dedaf60d10a2d7c01a59c Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 4 Jul 2023 19:15:40 +0200 Subject: [PATCH] tests: cache with error and zero --- test/shell/lvconvert-cache.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/shell/lvconvert-cache.sh b/test/shell/lvconvert-cache.sh index 0c38dd079..cfc8281c9 100644 --- a/test/shell/lvconvert-cache.sh +++ b/test/shell/lvconvert-cache.sh @@ -168,6 +168,19 @@ fail lvconvert --repair $vg/cpool 2>&1 | tee out lvremove -f $vg +######################### +# Some testing variants # +######################### + +for i in error zero +do + lvcreate --type "$i" -L50G -n $lv1 $vg + lvcreate --type "$i" -L10G -n cpool $vg + lvconvert -y --cachepool $vg/cpool + lvconvert -y -H --cachepool $vg/cpool $vg/$lv1 + lvremove -f $vg +done + ########################## # Prohibited conversions # ##########################