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 pvresize.c Date: Wed, 13 Jun 2007 22:16:00 -0000 [thread overview] Message-ID: <20070613221627.20634.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: wysochanski@sourceware.org 2007-06-13 22:16:27 Modified files: tools : pvresize.c Log message: Convert pv->pe_start to get_pv_pe_start Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/pvresize.c.diff?cvsroot=lvm2&r1=1.4&r2=1.5 --- LVM2/tools/pvresize.c 2007/06/06 19:40:28 1.4 +++ LVM2/tools/pvresize.c 2007/06/13 22:16:27 1.5 @@ -125,9 +125,9 @@ return ECMD_FAILED; } - if (size < pv->pe_start) { + if (size < get_pv_pe_start(pv)) { log_error("%s: Size must exceed physical extent start of " - "%" PRIu64 " sectors.", pv_name, pv->pe_start); + "%" PRIu64 " sectors.", pv_name, get_pv_pe_start(pv)); unlock_vg(cmd, vg_name); return ECMD_FAILED; } @@ -135,7 +135,7 @@ pv->size = size; if (vg) { - pv->size -= pv->pe_start; + pv->size -= get_pv_pe_start(pv); new_pe_count = pv->size / vg->extent_size; if (!new_pe_count) {
next reply other threads:[~2007-06-13 22:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-13 22:16 wysochanski [this message] 2007-08-30 20:16 wysochanski 2011-02-28 17:08 prajnoha
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=20070613221627.20634.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).