1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-23 02:05:07 +03:00

tests: check auto-growth of thin-pool meta

This commit is contained in:
Zdenek Kabelac 2019-04-03 13:25:54 +02:00
parent f38cfd09c4
commit 1370277ea7

View File

@ -28,7 +28,7 @@ test -n "$LVM_TEST_THIN_RESTORE_CMD" || LVM_TEST_THIN_RESTORE_CMD=$(which thin_r
aux have_thin 1 10 0 || skip
aux prepare_vg 3 256
aux prepare_vg 3 4096
aux lvmconf 'activation/thin_pool_autoextend_percent = 30' \
'activation/thin_pool_autoextend_threshold = 70'
@ -58,6 +58,12 @@ not lvcreate -V10 $vg/pool
lvextend --use-policies $vg/pool "$dev2" "$dev3"
#should lvextend -l+100%FREE $vg/pool2
check lv_field $vg/pool_tmeta size "3.00m"
lvextend -L+3G $vg/pool
check lv_field $vg/pool_tmeta size "3.50m"
lvs -a $vg
vgremove -ff $vg