summaryrefslogtreecommitdiff
path: root/tools/pvchange.c
diff options
context:
space:
mode:
authorPetr Rockai <me@mornfall.net>2013-03-17 21:29:58 +0100
committerPetr Rockai <prockai@redhat.com>2013-06-10 17:26:38 +0200
commitf65dd341a5617aeffe18127ba5bd7ca5ca4d8477 (patch)
tree64d3da97d4ff4ddc4b51da73741093cde4b37926 /tools/pvchange.c
parent5d5f2306bd4635cdc7e97a6a875384a00c9be460 (diff)
downloadlvm2-f65dd341a5617aeffe18127ba5bd7ca5ca4d8477.tar.gz
locking: Make it possible to pass down an LV to activation code.
Previously, we have relied on UUIDs alone, and on lvmcache to make getting a "new copy" of VG metadata fast. If the code which triggers the activation has the correct VG metadata at hand (the version which is currently on disk), it can now hand it to the activation code directly.
Diffstat (limited to 'tools/pvchange.c')
-rw-r--r--tools/pvchange.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvchange.c b/tools/pvchange.c
index 1458e9265..d2a3d9bfa 100644
--- a/tools/pvchange.c
+++ b/tools/pvchange.c
@@ -219,7 +219,7 @@ int pvchange(struct cmd_context *cmd, int argc, char **argv)
* take the lock here, pvs with 0 mdas in a non-orphan VG will
* be processed twice.
*/
- if (!lock_vol(cmd, VG_GLOBAL, LCK_VG_WRITE)) {
+ if (!lock_vol(cmd, VG_GLOBAL, LCK_VG_WRITE, NULL)) {
log_error("Unable to obtain global lock.");
return ECMD_FAILED;
}