public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: wysochanski@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/tools vgconvert.c Date: Wed, 13 Jun 2007 22:58:00 -0000 [thread overview] Message-ID: <20070613225833.6638.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2007-06-13 22:58:32 Modified files: tools : vgconvert.c Log message: Convert existing_pv dereferences to get_pv_* Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgconvert.c.diff?cvsroot=lvm2&r1=1.18&r2=1.19 --- LVM2/tools/vgconvert.c 2006/05/16 16:48:31 1.18 +++ LVM2/tools/vgconvert.c 2007/06/13 22:58:32 1.19 @@ -114,18 +114,18 @@ 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.");
reply other threads:[~2007-06-13 22:58 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070613225833.6638.qmail@sourceware.org \ --to=wysochanski@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).