mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
tests: check prohibited names
This commit is contained in:
parent
bfbf6b7c12
commit
87e559f1ec
@ -150,3 +150,11 @@ lvcreate -L 32m -n $lv -i2 --stripesize 128k --readahead auto $vg
|
|||||||
check lv_field $vg/$lv lv_read_ahead "auto"
|
check lv_field $vg/$lv lv_read_ahead "auto"
|
||||||
check lv_field $vg/$lv lv_kernel_read_ahead "512.00k"
|
check lv_field $vg/$lv lv_kernel_read_ahead "512.00k"
|
||||||
lvremove -ff $vg
|
lvremove -ff $vg
|
||||||
|
|
||||||
|
# prohibited names
|
||||||
|
for i in pvmove snapshot ; do
|
||||||
|
invalid lvcreate -l1 -n ${i}1 $vg
|
||||||
|
done
|
||||||
|
for i in _cdata _cmeta _mimage _mlog _pmspare _tdata _tmeta _vorigin ; do
|
||||||
|
invalid lvcreate -l1 -n s_${i}_1 $vg
|
||||||
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user