int import_pool_lvs(struct volume_group *vg, struct dm_pool *mem,
struct dm_list *pls);
int import_pool_pvs(const struct format_type *fmt, struct volume_group *vg,
- struct dm_list *pvs, struct dm_pool *mem, struct dm_list *pls);
+ struct dm_pool *mem, struct dm_list *pls);
int import_pool_pv(const struct format_type *fmt, struct dm_pool *mem,
struct volume_group *vg, struct physical_volume *pv,
struct pool_list *pl);
if (!import_pool_vg(vg, smem, pds))
return_NULL;
- if (!import_pool_pvs(fid->fmt, vg, &vg->pvs, smem, pds))
+ if (!import_pool_pvs(fid->fmt, vg, smem, pds))
return_NULL;
if (!import_pool_lvs(vg, smem, pds))
}
int import_pool_pvs(const struct format_type *fmt, struct volume_group *vg,
- struct dm_list *pvs, struct dm_pool *mem, struct dm_list *pls)
+ struct dm_pool *mem, struct dm_list *pls)
{
struct pv_list *pvl;
struct pool_list *pl;
pl->pv = pvl->pv;
pvl->mdas = NULL;
pvl->pe_ranges = NULL;
- dm_list_add(pvs, &pvl->list);
+ dm_list_add(&vg->pvs, &pvl->list);
}
return 1;