1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-10 05:18:36 +03:00

Add bz186013 check -- lvcreate rejects an invalid regionsize (jstava).

This commit is contained in:
Petr Rockai 2008-11-10 12:37:03 +00:00
parent 5e6ca1b72d
commit e9509aa5e6

View File

@ -13,9 +13,11 @@
. ./test-utils.sh
aux prepare_vg 2
aux prepare_pvs 2
aux pvcreate --metadatacopies 0 $dev1
vgcreate -cn $vg $devs
# "lvcreate rejects repeated invocation (run 2 times)"
# "lvcreate rejects repeated invocation (run 2 times) (bz178216)"
lvcreate -n $lv -l 4 $vg
not lvcreate -n $lv -l 4 $vg
lvremove -ff $vg/$lv
@ -46,6 +48,10 @@ lvremove -ff $vg
not lvcreate -L 64M -n $lv -i129 $vg 2>err
grep "^ Number of stripes (129) must be between 1 and 128\$" err
# 'lvcreate rejects an invalid regionsize (bz186013)'
not lvcreate -L 64M -n $lv -R0 $vg 2>err
grep "Non-zero region size must be supplied." err
# The case on lvdisplay output is to verify that the LV was not created.
# 'lvcreate rejects an invalid stripe size'
not lvcreate -L 64M -n $lv -i2 --stripesize 3 $vg 2>err