1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

tests: external origin updates

Update test for recent updates to support unalligned sizes
and extension of reduced volume.
This commit is contained in:
Zdenek Kabelac 2015-06-19 16:26:18 +02:00
parent 00d028fd77
commit b45e9183bc
2 changed files with 9 additions and 3 deletions

View File

@ -57,6 +57,8 @@ lvcreate -l10 -T $vg/pool1 -c 192k
not lvconvert -T --thinpool $vg/pool1 $vg/pool --originname origin
# Create pool1 chunk_size unaligned LV and check failing conversion
lvcreate -l2 -n $lv1 $vg
# Newer thin-pool target (>= 1.13) supports unaligned external origin
aux lvmconf 'global/thin_disabled_features = [ "external_origin_extend" ]'
not lvconvert -T --thinpool $vg/pool1 $vg/$lv1
lvremove -f $vg/pool1 $vg/$lv1

View File

@ -20,7 +20,7 @@ test -e LOCAL_LVMPOLLD && skip
aux have_thin 1 2 0 || skip
# Pretend we miss the external_origin_extend feature
aux lvmconf "global/thin_disabled_features = [ \"external_origin_extend\" ]"
aux lvmconf 'global/thin_disabled_features = [ "external_origin_extend" ]'
aux prepare_pvs 2
@ -41,7 +41,11 @@ not lvresize -L+10 $vg/$lv1
# But reduction works
lvresize -L-5 -f $vg/$lv1
check lv_field $vg/$lv1 lv_size "5.00" --units m --nosuffix
not lvresize -L+15 -y $vg/$lv1
check lv_field $vg/$lv1 lv_size "5.00" --units m --nosuffix
# Try to resize again back up to the size of external origin
# But for now we do not support zeroing for rexetended areas.
not lvresize -L+5 -f $vg/$lv1
lvresize -L+5 -f $vg/$lv1
check lv_field $vg/$lv1 lv_size "10.00" --units m --nosuffix