All of lore.kernel.org
 help / color / mirror / Atom feed
* stable-2.02 - tests: lvconvert thin profile conversion
@ 2021-02-17 12:01 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2021-02-17 12:01 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=9344a04b3794b154b06fa44da62d088f0b057486
Commit:        9344a04b3794b154b06fa44da62d088f0b057486
Parent:        7b51f39c844068e022c06b4523f220042f3bad14
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Wed Feb 17 00:07:50 2021 +0100
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
CommitterDate: Wed Feb 17 11:56:12 2021 +0100

tests: lvconvert thin profile conversion

---
 test/shell/profiles-thin.sh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/test/shell/profiles-thin.sh b/test/shell/profiles-thin.sh
index 40059becc..c62a5f56f 100644
--- a/test/shell/profiles-thin.sh
+++ b/test/shell/profiles-thin.sh
@@ -59,6 +59,24 @@ check lv_field $vg/pool_performance profile "thin-performance"
 $SHOULD check lv_field $vg/pool_performance chunk_size 1.00m
 check lv_field $vg/pool_performance zero ""
 
+lvremove -f $vg
+
+#
+# Repeat same two creations via lvconvert
+#
+lvcreate -L8m --name pool_generic $vg
+lvconvert --yes --type thin-pool $vg/pool_generic
+check lv_field $vg/pool_generic chunk_size 64.00k
+check lv_field $vg/pool_generic zero "zero"
+
+
+lvcreate -L8m --name pool_performance $vg
+lvconvert --yes --type thin-pool --errorwhenfull y --profile thin-performance $vg/pool_performance
+check lv_field $vg/pool_performance profile "thin-performance"
+$SHOULD check lv_field $vg/pool_performance chunk_size 1.00m
+check lv_field $vg/pool_performance zero ""
+check lv_field $vg/pool_performance lv_when_full "error"
+
 vgremove -ff $vg
 
 if test -d "$DM_DEV_DIR/$vg" ; then



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-17 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-17 12:01 stable-2.02 - tests: lvconvert thin profile conversion Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.