summaryrefslogtreecommitdiffstats
path: root/tools/pvchange.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2008-02-06 15:47:28 +0000
committerAlasdair Kergon <agk@redhat.com>2008-02-06 15:47:28 +0000
commitbb097a97eade0721251f6faf92e5bd88b6339e6f (patch)
tree58c7227c148eb8c12de8b77ce56c53e204d54ea2 /tools/pvchange.c
parent17dd04ca1f739690e4341adf04abb98d5664b26d (diff)
downloadlvm2-bb097a97eade0721251f6faf92e5bd88b6339e6f.tar.gz
lvm2-bb097a97eade0721251f6faf92e5bd88b6339e6f.tar.xz
lvm2-bb097a97eade0721251f6faf92e5bd88b6339e6f.zip
split orphan VG by format type
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 1783bad8..c7a0ee71 100644
--- a/tools/pvchange.c
+++ b/tools/pvchange.c
@@ -171,7 +171,7 @@ static int _pvchange_single(struct cmd_context *cmd, struct physical_volume *pv,
if (!is_orphan(pv)) {
orig_vg_name = pv_vg_name(pv);
orig_pe_alloc_count = pv_pe_alloc_count(pv);
- pv->vg_name = ORPHAN;
+ pv->vg_name = pv->fmt->orphan_vg_name;
pv->pe_alloc_count = 0;
if (!(pv_write(cmd, pv, NULL, INT64_C(-1)))) {
log_error("pv_write with new uuid failed "