From: David Teigland <teigland@sourceware.org>
To: lvm-devel@redhat.com
Subject: main - tests: stress: Change to use $SHARED for vgcreate
Date: Wed, 16 Jun 2021 15:35:23 +0000 (GMT) [thread overview]
Message-ID: <20210616153523.C0388393AC2A@sourceware.org> (raw)
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
reply other threads:[~2021-06-16 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210616153523.C0388393AC2A@sourceware.org \
--to=teigland@sourceware.org \
--cc=lvm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.