1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-08-03 08:22:00 +03:00

tests: snapshot now respects threshold

This commit is contained in:
Zdenek Kabelac
2015-10-26 07:38:23 +01:00
parent 428ca9b120
commit b29593378f

View File

@ -169,13 +169,13 @@ lvcreate -s -l12 $vg1/lvol0
fill 1K
check lv_field $vg1/lvol1 data_percent "100.00"
# Check it resizes 100% full valid snapshot
# Check it resizes 100% full valid snapshot to fit threshold
lvextend --use-policies $vg1/lvol1
check lv_field $vg1/lvol1 data_percent "80.00"
check lv_field $vg1/lvol1 data_percent "50.00"
fill 4K
lvextend --use-policies $vg1/lvol1
check lv_field $vg1/lvol1 size "18.00k"
check lv_field $vg1/lvol1 size "24.00k"
lvextend -l+33 $vg1/lvol1
check lv_field $vg1/lvol1 size "$EXPECT3"