mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
lvmlockd: VG lock can be used when changing lock type
This bit was missed from commit de4db6a
that added
changing lock_type.
This commit is contained in:
parent
3c1924c9c0
commit
e5d99cb9e6
@ -1047,15 +1047,6 @@ static int _lockd_vgchange(struct cmd_context *cmd, int argc, char **argv)
|
||||
if (arg_is_set(cmd, lockstart_ARG))
|
||||
cmd->lockd_vg_disable = 1;
|
||||
|
||||
/*
|
||||
* In most cases, lockd_vg does not apply when changing lock type.
|
||||
* (We don't generally allow changing *from* lockd type yet.)
|
||||
* lockd_vg could be called within _vgchange_locktype as needed.
|
||||
*/
|
||||
|
||||
if (arg_is_set(cmd, locktype_ARG))
|
||||
cmd->lockd_vg_disable = 1;
|
||||
|
||||
/*
|
||||
* Changing system_id or lock_type must only be done on explicitly
|
||||
* named vgs.
|
||||
|
Loading…
Reference in New Issue
Block a user