aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2015-09-09 13:09:17 -0500
committerDavid Teigland <teigland@redhat.com>2015-09-10 09:47:26 -0500
commit30e489db5e05296e22037bd885d074d395ab46f4 (patch)
tree729c2ac0bec0a5ebf40ca46cc443da819e2a27c0
parent2296999cf6922b2be0c6dc38abae0c6766996060 (diff)
downloadlvm2-30e489db5e05296e22037bd885d074d395ab46f4.tar.gz
vgchange: lock-stop only needs shared lock
lock-stop is one of the vgchange options that doesn't change the VG so we can override the default ex lock and use sh.
-rw-r--r--tools/vgchange.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/vgchange.c b/tools/vgchange.c
index 1d3c64a86..a80b678a6 100644
--- a/tools/vgchange.c
+++ b/tools/vgchange.c
@@ -1044,6 +1044,9 @@ static int _lockd_vgchange(struct cmd_context *cmd, int argc, char **argv)
cmd->lockd_vg_enforce_sh = 1;
}
+ if (arg_is_set(cmd, lockstop_ARG))
+ cmd->lockd_vg_default_sh = 1;
+
/* Starting a vg lockspace means there are no locks available yet. */
if (arg_is_set(cmd, lockstart_ARG))