From a8b8e1f074598d080bfb34e1fd04fe36ec122f93 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Thu, 30 May 2024 14:51:22 -0500 Subject: [PATCH] vgimportdevices: skip global lockd locking Fix commit b65a2c3f3a767 "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. --- tools/vgimportdevices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vgimportdevices.c b/tools/vgimportdevices.c index 5de231eeb..0a7e2a5f2 100644 --- a/tools/vgimportdevices.c +++ b/tools/vgimportdevices.c @@ -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; /*