1
0
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:
David Teigland 2015-08-27 16:34:51 -05:00
parent 3c1924c9c0
commit e5d99cb9e6

View File

@ -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.