diff --git a/test/shell/lvcreate-vdo.sh b/test/shell/lvcreate-vdo.sh index b24801375..87d6f98a1 100644 --- a/test/shell/lvcreate-vdo.sh +++ b/test/shell/lvcreate-vdo.sh @@ -89,4 +89,15 @@ check lv_field $vg/$lv1 vdo_ack_threads "4" lvs -a $vg lvremove -ff $vg +lvcreate --type vdo --vdosettings 'minimum_io_size=512' -L10G -V1T -ky -n $lv1 $vg +check lv_field $vg/$lv1 vdo_minimum_io_size "512b" +lvremove -ff $vg + +lvcreate --type vdo --vdosettings 'minimum_io_size=4096' -L10G -V1T -ky -n $lv1 $vg +check lv_field $vg/$lv1 vdo_minimum_io_size "4.00k" +lvremove -ff $vg + +# only 512 or 4096 are valid values (and eventually 1 or 8 sectors) +not lvcreate --type vdo --vdosettings 'minimum_io_size=8000' -L10G -V1T -ky -n $lv1 $vg + vgremove -ff $vg