mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
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.
This commit is contained in:
parent
ace25d5eeb
commit
a8b8e1f074
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user