diff --git a/test/shell/lvconvert-thin-external.sh b/test/shell/lvconvert-thin-external.sh index eba9e36eb..479d23cb0 100644 --- a/test/shell/lvconvert-thin-external.sh +++ b/test/shell/lvconvert-thin-external.sh @@ -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 diff --git a/test/shell/lvresize-thin-external-origin.sh b/test/shell/lvresize-thin-external-origin.sh index 66de5f86d..090cb064f 100644 --- a/test/shell/lvresize-thin-external-origin.sh +++ b/test/shell/lvresize-thin-external-origin.sh @@ -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