mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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.
This commit is contained in:
parent
2296999cf6
commit
30e489db5e
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user