From f0b4d18f936a7815990dd5cfa76359190be8bd93 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Tue, 9 Oct 2001 17:30:20 +0000 Subject: [PATCH] o remove another spurious error message --- lib/format1/format1.c | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/lib/format1/format1.c b/lib/format1/format1.c index 729f9b8fd..c252ec918 100644 --- a/lib/format1/format1.c +++ b/lib/format1/format1.c @@ -37,9 +37,8 @@ static struct volume_group *_build_vg(struct pool *mem, struct list_head *pvs) struct volume_group *vg = pool_alloc(mem, sizeof(*vg)); struct disk_list *dl; - if (list_empty(pvs)) { - log_err("no pv's in volume group"); + stack; return NULL; } @@ -104,6 +103,25 @@ static struct volume_group *_vg_read(struct io_space *is, const char *vg_name) return vg; } +#if 0 +static int _calculate_disk_sizes(struct disk_list *dl) +{ + pvd->pv_on_disk.base = ??; + pvd->pv_on_disk.size = ??; + + pvd->vg_on_disk.base = ??; + pvd->vg_on_disk.size = ??; + + pvd->pv_uuidlist_on_disk.base = ??; + pvd->pv_uuidlist_on_disk.size = ??; + + pvd->lv_on_disk.base = ??; + pvd->lv_on_disk.size = ??; + + pvd->pe_on_disk.base = ??; + pvd->pe_on_disk.size = ??; +} +#endif static struct disk_list *_flatten_pv(struct pool *mem, struct volume_group *vg, struct physical_volume *pv, const char *prefix)