diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-17 00:07:50 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-17 11:56:12 +0100 |
commit | 9344a04b3794b154b06fa44da62d088f0b057486 (patch) | |
tree | f437ae75d51003a3c88e684a0e41bd5b936a1d48 | |
parent | 7b51f39c844068e022c06b4523f220042f3bad14 (diff) | |
download | lvm2-9344a04b3794b154b06fa44da62d088f0b057486.tar.gz |
tests: lvconvert thin profile conversion
-rw-r--r-- | test/shell/profiles-thin.sh | 18 |
1 files changed, 18 insertions, 0 deletions
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 |