summaryrefslogtreecommitdiff
path: root/tools/vgconvert.c
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2011-02-28 13:19:02 +0000
committerPeter Rajnoha <prajnoha@redhat.com>2011-02-28 13:19:02 +0000
commit3b97e8d643d06f3f3391bc3625d49726fc0f5ad8 (patch)
tree9c7250ba454f87ea13b0885b4f667371be24279d /tools/vgconvert.c
parent1a52fa6858ed6cc849914bf0c23259bd8821289c (diff)
downloadlvm2-3b97e8d643d06f3f3391bc3625d49726fc0f5ad8.tar.gz
Allow non-orphan PVs with two metadata areas to be resized.
We allow writing non-orphan PVs only for resize now. The "orphan PV" assert in pv_write fn uses the "allow_non_orphan" parameter to control this assert. However, we should find a more elaborate solution so we can remove this restriction altogether (pv_write together with vg_write is not atomic, we need to find a safe mechanism so there's an easy revert possible in case of an error).
Diffstat (limited to 'tools/vgconvert.c')
-rw-r--r--tools/vgconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgconvert.c b/tools/vgconvert.c
index 48e3d5975..5c42f3bc1 100644
--- a/tools/vgconvert.c
+++ b/tools/vgconvert.c
@@ -151,7 +151,7 @@ static int vgconvert_single(struct cmd_context *cmd, const char *vg_name,
log_very_verbose("Writing physical volume data to disk \"%s\"",
pv_dev_name(pv));
- if (!(pv_write(cmd, pv))) {
+ if (!(pv_write(cmd, pv, 0))) {
log_error("Failed to write physical volume \"%s\"",
pv_dev_name(pv));
log_error("Use pvcreate and vgcfgrestore to repair "