From 86574ce07ad80cf8e234719a807740a85b45ad81 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 8 Jan 2025 22:57:29 +0100 Subject: [PATCH] tests: test unsupported lvresize of origin vdo lv --- test/shell/lvextend-vdo.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/shell/lvextend-vdo.sh b/test/shell/lvextend-vdo.sh index 2e9cee4f5..1091d0679 100644 --- a/test/shell/lvextend-vdo.sh +++ b/test/shell/lvextend-vdo.sh @@ -49,6 +49,12 @@ lvextend --use-policies "$vg/$lv2" # although autoextend is only 1%, it needs to extend at least by slab_size # this is corner case where min growth requires 128M + 128k check lv_field $vg/$lv2 size "<4.13g" +lvremove -f $vg +# Resize of VDO origin (not supported) +lvcreate --vdo -V3G -L4G -n $lv1 $vg/$lv2 +lvcreate -s -L1 $vg/$lv1 +not lvextend -L+2G $vg/$lv1 |& tee out +grep "not supported" out vgremove -ff $vg