1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

vgimportdevices: skip global lockd locking

Fix commit b65a2c3f3a "vgimportdevices: skip lvmlockd locking"
which intended to disable lvmlockd locking, but the lockd_gl_disable
flag was mistakenly set after lock_global() so it wasn't effective.
This caused vgimportdevices to fail unless locking was started.
This commit is contained in:
David Teigland 2024-05-30 14:51:22 -05:00
parent ace25d5eeb
commit a8b8e1f074

View File

@ -207,7 +207,7 @@ int vgimportdevices(struct cmd_context *cmd, int argc, char **argv)
}
}
if (!lock_global(cmd, "ex"))
if (!lockf_global(cmd, "ex"))
return ECMD_FAILED;
/*