1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

tests: lvconvert thin profile conversion

This commit is contained in:
Zdenek Kabelac 2021-02-17 00:07:50 +01:00
parent 53666d6ee3
commit 3af61d8646

View File

@ -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