summaryrefslogtreecommitdiffstats
path: root/lib/format1/import-export.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2008-09-19 06:42:00 +0000
committerAlasdair Kergon <agk@redhat.com>2008-09-19 06:42:00 +0000
commit8c5bcdabab5b40498f2051715639cf07f14d877b (patch)
tree4cadcdff3b23747c3ea869f3851bedf4d95dc3d4 /lib/format1/import-export.c
parent86fb36e2b08f667bc06ac7d0b160a0247bb382a0 (diff)
downloadlvm2-8c5bcdabab5b40498f2051715639cf07f14d877b.tar.gz
lvm2-8c5bcdabab5b40498f2051715639cf07f14d877b.tar.xz
lvm2-8c5bcdabab5b40498f2051715639cf07f14d877b.zip
Improve the way VGs with PVs missing are handled so manual intervention
is required in fewer circumstances. (mornfall)
Diffstat (limited to 'lib/format1/import-export.c')
-rw-r--r--lib/format1/import-export.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/format1/import-export.c b/lib/format1/import-export.c
index 4bb51160..c80011d9 100644
--- a/lib/format1/import-export.c
+++ b/lib/format1/import-export.c
@@ -214,7 +214,7 @@ int export_pv(struct cmd_context *cmd, struct dm_pool *mem __attribute((unused))
}
int import_vg(struct dm_pool *mem,
- struct volume_group *vg, struct disk_list *dl, int partial)
+ struct volume_group *vg, struct disk_list *dl)
{
struct vg_disk *vgd = &dl->vgd;
memcpy(vg->id.uuid, vgd->vg_uuid, ID_LEN);
@@ -236,10 +236,10 @@ int import_vg(struct dm_pool *mem,
if (vgd->vg_status & VG_EXTENDABLE)
vg->status |= RESIZEABLE_VG;
- if (partial || (vgd->vg_access & VG_READ))
+ if (vgd->vg_access & VG_READ)
vg->status |= LVM_READ;
- if (!partial && (vgd->vg_access & VG_WRITE))
+ if (vgd->vg_access & VG_WRITE)
vg->status |= LVM_WRITE;
if (vgd->vg_access & VG_CLUSTERED)
@@ -255,9 +255,6 @@ int import_vg(struct dm_pool *mem,
vg->max_pv = vgd->pv_max;
vg->alloc = ALLOC_NORMAL;
- if (partial)
- vg->status |= PARTIAL_VG;
-
return 1;
}