summaryrefslogtreecommitdiff
path: root/tools/pvcreate.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/pvcreate.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/pvcreate.c')
-rw-r--r--tools/pvcreate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pvcreate.c b/tools/pvcreate.c
index 91562d210..d3703b465 100644
--- a/tools/pvcreate.c
+++ b/tools/pvcreate.c
@@ -108,7 +108,7 @@ int pvcreate(struct cmd_context *cmd, int argc, char **argv)
}
for (i = 0; i < argc; i++) {
- if (!lock_vol(cmd, VG_ORPHANS, LCK_VG_WRITE)) {
+ if (!lock_vol(cmd, VG_ORPHANS, LCK_VG_WRITE, NULL)) {
log_error("Can't get lock for orphan PVs");
return ECMD_FAILED;
}