main - tests: stress: Change to use $SHARED for vgcreate
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f25df0386edf6cd80fb577b477069a1705cf4869 Commit: f25df0386edf6cd80fb577b477069a1705cf4869 Parent: e5740e9646d08eb9804a40bf195cefa46e8006e2 Author: Leo Yan <[email protected]> AuthorDate: Wed Jun 16 21:43:54 2021 +0800 Committer: David Teigland <[email protected]> CommitterDate: Wed Jun 16 10:35:12 2021 -0500
tests: stress: Change to use $SHARED for vgcreate
Use the variable $SHARED to replace "--shared" for vgcreate commands.
Signed-off-by Leo Yan <[email protected]>
--- test/shell/stress_multi_threads_1.sh | 4 ++-- test/shell/stress_multi_threads_2.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
test/shell/stress_multi_threads_1.sh +2 -2
@@ -22,8 +22,8 @@ get_devs pvcreate -M2 "${DEVICES[@]}" -vgcreate --shared -M2 "$vg1" "$dev1" "$dev2" "$dev3" -vgcreate --shared -M2 "$vg2" "$dev4" "$dev5" "$dev6" +vgcreate $SHARED -M2 "$vg1" "$dev1" "$dev2" "$dev3" +vgcreate $SHARED -M2 "$vg2" "$dev4" "$dev5" "$dev6" test_vg_thread1() {
test/shell/stress_multi_threads_2.sh +2 -2
@@ -26,14 +26,14 @@ test_vg_thread1() { for i in {1..1000} do - vgcreate --shared -M2 "$vg1" "$dev1" "$dev2" "$dev3" + vgcreate $SHARED -M2 "$vg1" "$dev1" "$dev2" "$dev3" vgremove -ff $vg1 done } test_vg_thread2() { - vgcreate --shared -M2 "$vg2" "$dev4" "$dev5" "$dev6" + vgcreate $SHARED -M2 "$vg2" "$dev4" "$dev5" "$dev6" for i in {1..1000} do