]> sourceware.org Git - lvm2.git/commitdiff
vgimportdevices: skip global lockd locking 1312391201
authorDavid Teigland <teigland@redhat.com>
Thu, 30 May 2024 19:51:22 +0000 (14:51 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 30 May 2024 19:53:46 +0000 (14:53 -0500)
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

index 5de231eeb45047136f44979f6c47af80dbc6ea14..0a7e2a5f254c69fe4aca52fad6e9ed3d22e4936e 100644 (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;
 
        /*
This page took 0.037296 seconds and 5 git commands to generate.