diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2007-06-13 22:58:32 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2007-06-13 22:58:32 +0000 |
commit | becc177daca1bacfcd5f57f8368822cee5653de7 (patch) | |
tree | f1d410fb6aa46cdcd2e13c62b0690caa44cbb47e | |
parent | 70121705ba6c58dcb39ed9b8c1d314be110d0cb9 (diff) | |
download | lvm2-becc177daca1bacfcd5f57f8368822cee5653de7.tar.gz lvm2-becc177daca1bacfcd5f57f8368822cee5653de7.tar.xz lvm2-becc177daca1bacfcd5f57f8368822cee5653de7.zip |
Convert existing_pv dereferences to get_pv_*
-rw-r--r-- | tools/vgconvert.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/vgconvert.c b/tools/vgconvert.c index e6e5b530..a9c4976c 100644 --- a/tools/vgconvert.c +++ b/tools/vgconvert.c @@ -114,18 +114,18 @@ static int vgconvert_single(struct cmd_context *cmd, const char *vg_name, list_iterate_items(pvl, &vg->pvs) { existing_pv = pvl->pv; - pe_start = existing_pv->pe_start; - pe_end = existing_pv->pe_count * existing_pv->pe_size + pe_start = get_pv_pe_start(existing_pv); + pe_end = get_pv_pe_count(existing_pv) * get_pv_pe_size(existing_pv) + pe_start - 1; list_init(&mdas); - if (!(pv = pv_create(cmd->fmt, existing_pv->dev, + if (!(pv = pv_create(cmd->fmt, get_pv_dev(existing_pv), &existing_pv->id, size, - pe_start, existing_pv->pe_count, - existing_pv->pe_size, pvmetadatacopies, + pe_start, get_pv_pe_count(existing_pv), + get_pv_pe_size(existing_pv), pvmetadatacopies, pvmetadatasize, &mdas))) { log_error("Failed to setup physical volume \"%s\"", - dev_name(existing_pv->dev)); + dev_name(get_pv_dev(existing_pv))); if (change_made) log_error("Use pvcreate and vgcfgrestore to " "repair from archived metadata."); |