summaryrefslogtreecommitdiffstats
path: root/tools
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
parent17dd04ca1f739690e4341adf04abb98d5664b26d (diff)
downloadlvm2-bb097a97eade0721251f6faf92e5bd88b6339e6f.tar.gz
lvm2-bb097a97eade0721251f6faf92e5bd88b6339e6f.tar.xz
lvm2-bb097a97eade0721251f6faf92e5bd88b6339e6f.zip
split orphan VG by format type
Diffstat (limited to 'tools')
-rw-r--r--tools/pvchange.c2
-rw-r--r--tools/vgreduce.c2
2 files changed, 2 insertions, 2 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 "
diff --git a/tools/vgreduce.c b/tools/vgreduce.c
index 4b4dea48..ccda5d96 100644
--- a/tools/vgreduce.c
+++ b/tools/vgreduce.c
@@ -376,7 +376,7 @@ static int _vgreduce_single(struct cmd_context *cmd, struct volume_group *vg,
if (pvl)
list_del(&pvl->list);
- pv->vg_name = ORPHAN;
+ pv->vg_name = vg->fid->fmt->orphan_vg_name;
pv->status = ALLOCATABLE_PV;
if (!dev_get_size(pv_dev(pv), &pv->size)) {