mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Update vgsplit tests that count LVs for adjusted LV counting.
This commit is contained in:
parent
3cde54c50e
commit
55ea8590ae
@ -121,9 +121,9 @@ test_expect_success \
|
||||
vgsplit -n $lv1 $vg1 $vg2
|
||||
fi &&
|
||||
if [ $i == existing ]; then
|
||||
vg_validate_pvlv_counts_ $vg2 4 4 0
|
||||
vg_validate_pvlv_counts_ $vg2 4 1 0
|
||||
else
|
||||
vg_validate_pvlv_counts_ $vg2 3 4 0
|
||||
vg_validate_pvlv_counts_ $vg2 3 1 0
|
||||
fi &&
|
||||
lvremove -f $vg2/$lv1 &&
|
||||
vgremove -f $vg2'
|
||||
@ -143,9 +143,9 @@ test_expect_success \
|
||||
vgsplit -n $lv1 $vg1 $vg2
|
||||
fi &&
|
||||
if [ $i == existing ]; then
|
||||
vg_validate_pvlv_counts_ $vg2 4 1 1
|
||||
vg_validate_pvlv_counts_ $vg2 4 2 1
|
||||
else
|
||||
vg_validate_pvlv_counts_ $vg2 2 1 1
|
||||
vg_validate_pvlv_counts_ $vg2 2 2 1
|
||||
fi &&
|
||||
lvremove -f $vg2/$lv2 &&
|
||||
lvremove -f $vg2/$lv1 &&
|
||||
@ -169,10 +169,10 @@ test_expect_success \
|
||||
fi &&
|
||||
if [ $i == existing ]; then
|
||||
vg_validate_pvlv_counts_ $vg2 2 1 0
|
||||
vg_validate_pvlv_counts_ $vg1 2 1 1
|
||||
vg_validate_pvlv_counts_ $vg1 2 2 1
|
||||
else
|
||||
vg_validate_pvlv_counts_ $vg2 1 1 0
|
||||
vg_validate_pvlv_counts_ $vg1 2 1 1
|
||||
vg_validate_pvlv_counts_ $vg1 2 2 1
|
||||
fi &&
|
||||
lvremove -f $vg1/$lv2 &&
|
||||
lvremove -f $vg1/$lv1 &&
|
||||
@ -196,10 +196,10 @@ test_expect_success \
|
||||
vgsplit -n $lv2 $vg1 $vg2
|
||||
fi &&
|
||||
if [ $i == existing ]; then
|
||||
vg_validate_pvlv_counts_ $vg1 3 4 0
|
||||
vg_validate_pvlv_counts_ $vg1 3 2 0
|
||||
vg_validate_pvlv_counts_ $vg2 2 1 0
|
||||
else
|
||||
vg_validate_pvlv_counts_ $vg1 3 4 0
|
||||
vg_validate_pvlv_counts_ $vg1 3 2 0
|
||||
vg_validate_pvlv_counts_ $vg2 1 1 0
|
||||
fi &&
|
||||
lvremove -f $vg1/$lv1 &&
|
||||
@ -231,7 +231,7 @@ test_expect_success \
|
||||
lvcreate -l 16 -n $lv1 $vg1 $d1 $d2 &&
|
||||
lvcreate -l 4 -n $lv2 -s $vg1/$lv1 &&
|
||||
lvcreate -l 4 -n $lv3 -s $vg1/$lv1 &&
|
||||
vg_validate_pvlv_counts_ $vg1 4 1 2 &&
|
||||
vg_validate_pvlv_counts_ $vg1 4 3 2 &&
|
||||
vgchange -an $vg1 &&
|
||||
vgsplit -n $lv1 $vg1 $vg2;
|
||||
status=$?; echo status=$status; test $status = 5 &&
|
||||
@ -246,7 +246,7 @@ test_expect_success \
|
||||
lvcreate -l 16 -n $lv1 $vg1 $d1 $d2 &&
|
||||
lvcreate -l 4 -n $lv2 -s $vg1/$lv1 &&
|
||||
lvcreate -l 4 -n $lv3 -s $vg1/$lv1 &&
|
||||
vg_validate_pvlv_counts_ $vg1 4 1 2 &&
|
||||
vg_validate_pvlv_counts_ $vg1 4 3 2 &&
|
||||
vgchange -an $vg1 &&
|
||||
vgsplit -n $lv2 $vg1 $vg2;
|
||||
status=$?; echo status=$status; test $status = 5 &&
|
||||
@ -270,7 +270,7 @@ test_expect_success \
|
||||
'vgcreate $vg1 $d1 $d2 $d3 $d4 &&
|
||||
lvcreate -l 16 -n $lv1 -m1 $vg1 $d1 $d2 $d3 &&
|
||||
lvcreate -l 16 -n $lv2 -i 2 $vg1 $d3 $d4 &&
|
||||
vg_validate_pvlv_counts_ $vg1 4 5 0 &&
|
||||
vg_validate_pvlv_counts_ $vg1 4 2 0 &&
|
||||
vgchange -an $vg1 &&
|
||||
vgsplit -n $lv2 $vg1 $vg2 2>err;
|
||||
status=$?; echo status=$status; test $status = 5 &&
|
||||
|
Loading…
Reference in New Issue
Block a user