]> sourceware.org Git - lvm2.git/commitdiff
Convert existing_pv dereferences to get_pv_*
authorDave Wysochanski <dwysocha@redhat.com>
Wed, 13 Jun 2007 22:58:32 +0000 (22:58 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Wed, 13 Jun 2007 22:58:32 +0000 (22:58 +0000)
tools/vgconvert.c

index e6e5b530a76c95ef97486a213066285be7ce502f..a9c4976cb342a32e00963fdf8d7ab90ca0ddf17e 100644 (file)
@@ -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.");
This page took 0.043385 seconds and 5 git commands to generate.