mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix [ a = b ] usage in t-vgsplit-operation: string comparison is '=', not '=='.
This commit is contained in:
parent
167ff7f677
commit
e9815c4ea6
@ -34,18 +34,18 @@ do
|
||||
do
|
||||
COMM "vgsplit correctly splits single linear LV into $i VG ($j args)"
|
||||
vgcreate $vg1 $dev1 $dev2
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
vgcreate $vg2 $dev3 $dev4
|
||||
fi
|
||||
lvcreate -l 4 -n $lv1 $vg1 $dev1
|
||||
vgchange -an $vg1
|
||||
if [ $j == PV ]; then
|
||||
if [ $j = PV ]; then
|
||||
vgsplit $vg1 $vg2 $dev1
|
||||
else
|
||||
vgsplit -n $lv1 $vg1 $vg2
|
||||
fi
|
||||
vg_validate_pvlv_counts_ $vg1 1 0 0
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
aux vg_validate_pvlv_counts_ $vg2 3 1 0
|
||||
else
|
||||
aux vg_validate_pvlv_counts_ $vg2 1 1 0
|
||||
@ -56,17 +56,17 @@ COMM "vgsplit correctly splits single linear LV into $i VG ($j args)"
|
||||
|
||||
COMM "vgsplit correctly splits single striped LV into $i VG ($j args)"
|
||||
vgcreate $vg1 $dev1 $dev2
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
vgcreate $vg2 $dev3 $dev4
|
||||
fi
|
||||
lvcreate -l 4 -i 2 -n $lv1 $vg1 $dev1 $dev2
|
||||
vgchange -an $vg1
|
||||
if [ $j == PV ]; then
|
||||
if [ $j = PV ]; then
|
||||
vgsplit $vg1 $vg2 $dev1 $dev2
|
||||
else
|
||||
vgsplit -n $lv1 $vg1 $vg2
|
||||
fi
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
aux vg_validate_pvlv_counts_ $vg2 4 1 0
|
||||
else
|
||||
aux vg_validate_pvlv_counts_ $vg2 2 1 0
|
||||
@ -76,17 +76,17 @@ COMM "vgsplit correctly splits single striped LV into $i VG ($j args)"
|
||||
|
||||
COMM "vgsplit correctly splits mirror LV into $i VG ($j args)"
|
||||
vgcreate $vg1 $dev1 $dev2 $dev3
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
vgcreate $vg2 $dev4
|
||||
fi
|
||||
lvcreate -l 64 -m1 -n $lv1 $vg1 $dev1 $dev2 $dev3
|
||||
vgchange -an $vg1
|
||||
if [ $j == PV ]; then
|
||||
if [ $j = PV ]; then
|
||||
vgsplit $vg1 $vg2 $dev1 $dev2 $dev3
|
||||
else
|
||||
vgsplit -n $lv1 $vg1 $vg2
|
||||
fi
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
aux vg_validate_pvlv_counts_ $vg2 4 1 0
|
||||
else
|
||||
aux vg_validate_pvlv_counts_ $vg2 3 1 0
|
||||
@ -96,18 +96,18 @@ COMM "vgsplit correctly splits mirror LV into $i VG ($j args)"
|
||||
|
||||
COMM "vgsplit correctly splits origin and snapshot LV into $i VG ($j args)"
|
||||
vgcreate $vg1 $dev1 $dev2
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
vgcreate $vg2 $dev3 $dev4
|
||||
fi
|
||||
lvcreate -l 64 -i 2 -n $lv1 $vg1 $dev1 $dev2
|
||||
lvcreate -l 4 -i 2 -s -n $lv2 $vg1/$lv1
|
||||
vgchange -an $vg1
|
||||
if [ $j == PV ]; then
|
||||
if [ $j = PV ]; then
|
||||
vgsplit $vg1 $vg2 $dev1 $dev2
|
||||
else
|
||||
vgsplit -n $lv1 $vg1 $vg2
|
||||
fi
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
aux vg_validate_pvlv_counts_ $vg2 4 2 1
|
||||
else
|
||||
aux vg_validate_pvlv_counts_ $vg2 2 2 1
|
||||
@ -118,7 +118,7 @@ COMM "vgsplit correctly splits origin and snapshot LV into $i VG ($j args)"
|
||||
|
||||
COMM "vgsplit correctly splits linear LV but not snap+origin LV into $i VG ($j args)"
|
||||
vgcreate $vg1 $dev1 $dev2
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
vgcreate $vg2 $dev3
|
||||
fi
|
||||
lvcreate -l 64 -i 2 -n $lv1 $vg1
|
||||
@ -126,12 +126,12 @@ COMM "vgsplit correctly splits linear LV but not snap+origin LV into $i VG ($j a
|
||||
vgextend $vg1 $dev4
|
||||
lvcreate -l 64 -n $lv3 $vg1 $dev4
|
||||
vgchange -an $vg1
|
||||
if [ $j == PV ]; then
|
||||
if [ $j = PV ]; then
|
||||
vgsplit $vg1 $vg2 $dev4
|
||||
else
|
||||
vgsplit -n $lv3 $vg1 $vg2
|
||||
fi
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
aux vg_validate_pvlv_counts_ $vg2 2 1 0
|
||||
aux vg_validate_pvlv_counts_ $vg1 2 2 1
|
||||
else
|
||||
@ -146,7 +146,7 @@ COMM "vgsplit correctly splits linear LV but not snap+origin LV into $i VG ($j a
|
||||
|
||||
COMM "vgsplit correctly splits linear LV but not mirror LV into $i VG ($j args)"
|
||||
vgcreate $vg1 $dev1 $dev2 $dev3
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
vgcreate $vg2 $dev5
|
||||
fi
|
||||
lvcreate -l 64 -m1 -n $lv1 $vg1 $dev1 $dev2 $dev3
|
||||
@ -156,12 +156,12 @@ COMM "vgsplit correctly splits linear LV but not mirror LV into $i VG ($j args)"
|
||||
vgs
|
||||
lvs
|
||||
pvs
|
||||
if [ $j == PV ]; then
|
||||
if [ $j = PV ]; then
|
||||
vgsplit $vg1 $vg2 $dev4
|
||||
else
|
||||
vgsplit -n $lv2 $vg1 $vg2
|
||||
fi
|
||||
if [ $i == existing ]; then
|
||||
if [ $i = existing ]; then
|
||||
aux vg_validate_pvlv_counts_ $vg1 3 1 0
|
||||
aux vg_validate_pvlv_counts_ $vg2 2 1 0
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user