All of lore.kernel.org
 help / color / mirror / Atom feed
* main - tests: stress: Change to use $SHARED for vgcreate
@ 2021-06-16 15:35 David Teigland
  0 siblings, 0 replies; only message in thread
From: David Teigland @ 2021-06-16 15:35 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=f25df0386edf6cd80fb577b477069a1705cf4869
Commit:        f25df0386edf6cd80fb577b477069a1705cf4869
Parent:        e5740e9646d08eb9804a40bf195cefa46e8006e2
Author:        Leo Yan <leo.yan@linaro.org>
AuthorDate:    Wed Jun 16 21:43:54 2021 +0800
Committer:     David Teigland <teigland@redhat.com>
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 <leo.yan@linaro.org>
---
 test/shell/stress_multi_threads_1.sh | 4 ++--
 test/shell/stress_multi_threads_2.sh | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/shell/stress_multi_threads_1.sh b/test/shell/stress_multi_threads_1.sh
index e76810bbb..c5695eb0b 100644
--- a/test/shell/stress_multi_threads_1.sh
+++ b/test/shell/stress_multi_threads_1.sh
@@ -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()
 {
diff --git a/test/shell/stress_multi_threads_2.sh b/test/shell/stress_multi_threads_2.sh
index 4e72b7447..9b586a263 100644
--- a/test/shell/stress_multi_threads_2.sh
+++ b/test/shell/stress_multi_threads_2.sh
@@ -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



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-16 15:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-16 15:35 main - tests: stress: Change to use $SHARED for vgcreate David Teigland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.