mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: stress: Change to use $SHARED for vgcreate
Use the variable $SHARED to replace "--shared" for vgcreate commands. Signed-off-by: Leo Yan <leo.yan@linaro.org>
This commit is contained in:
parent
e5740e9646
commit
f25df0386e
@ -22,8 +22,8 @@ get_devs
|
|||||||
|
|
||||||
pvcreate -M2 "${DEVICES[@]}"
|
pvcreate -M2 "${DEVICES[@]}"
|
||||||
|
|
||||||
vgcreate --shared -M2 "$vg1" "$dev1" "$dev2" "$dev3"
|
vgcreate $SHARED -M2 "$vg1" "$dev1" "$dev2" "$dev3"
|
||||||
vgcreate --shared -M2 "$vg2" "$dev4" "$dev5" "$dev6"
|
vgcreate $SHARED -M2 "$vg2" "$dev4" "$dev5" "$dev6"
|
||||||
|
|
||||||
test_vg_thread1()
|
test_vg_thread1()
|
||||||
{
|
{
|
||||||
|
@ -26,14 +26,14 @@ test_vg_thread1()
|
|||||||
{
|
{
|
||||||
for i in {1..1000}
|
for i in {1..1000}
|
||||||
do
|
do
|
||||||
vgcreate --shared -M2 "$vg1" "$dev1" "$dev2" "$dev3"
|
vgcreate $SHARED -M2 "$vg1" "$dev1" "$dev2" "$dev3"
|
||||||
vgremove -ff $vg1
|
vgremove -ff $vg1
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
test_vg_thread2()
|
test_vg_thread2()
|
||||||
{
|
{
|
||||||
vgcreate --shared -M2 "$vg2" "$dev4" "$dev5" "$dev6"
|
vgcreate $SHARED -M2 "$vg2" "$dev4" "$dev5" "$dev6"
|
||||||
|
|
||||||
for i in {1..1000}
|
for i in {1..1000}
|
||||||
do
|
do
|
||||||
|
Loading…
Reference in New Issue
Block a user