mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-04 09:18:36 +03:00
tests: check --test
Check lvconvert --thin is not adding more LVs. Enable testing with lvmlockd. TODO: lvmlockd is missing support for --test.
This commit is contained in:
parent
482501c21f
commit
1c60c6785c
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
# Test conversion to thin volume from thick LVs
|
# Test conversion to thin volume from thick LVs
|
||||||
|
|
||||||
SKIP_WITH_LVMLOCKD=1
|
|
||||||
SKIP_WITH_LVMPOLLD=1
|
SKIP_WITH_LVMPOLLD=1
|
||||||
|
|
||||||
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
|
export LVM_TEST_THIN_REPAIR_CMD=${LVM_TEST_THIN_REPAIR_CMD-/bin/false}
|
||||||
@ -50,6 +49,16 @@ lvcreate --type zero -L2T -n $lv1 $vg
|
|||||||
lvconvert --yes --type thin $vg/$lv1
|
lvconvert --yes --type thin $vg/$lv1
|
||||||
lvremove -f $vg
|
lvremove -f $vg
|
||||||
|
|
||||||
|
# zero -> thin --test
|
||||||
|
if [ ! -e LOCAL_LVMLOCKD ] ; then
|
||||||
|
# FIXME: missing support with lvmlockd
|
||||||
|
lvcreate --type zero -L2T -n $lv1 $vg
|
||||||
|
lvconvert --yes --type thin --test $vg/$lv1
|
||||||
|
check lv_field $vg/$lv1 segtype zero
|
||||||
|
check vg_field $vg lv_count 1
|
||||||
|
lvremove -f $vg
|
||||||
|
fi
|
||||||
|
|
||||||
# linear -> thin
|
# linear -> thin
|
||||||
lvcreate -L10 -n $lv1 $vg
|
lvcreate -L10 -n $lv1 $vg
|
||||||
_convert_to_thin
|
_convert_to_thin
|
||||||
|
Loading…
Reference in New Issue
Block a user