From: Mike Snitzer <snitzer@redhat.com>
To: lvm-devel@redhat.com
Subject: Re: [PATCH 1/6] Add --dataalignmentoffset to pvcreate to pad aligned data area
Date: Sat, 25 Jul 2009 18:09:55 -0400 [thread overview]
Message-ID: <20090725220954.GA28619@redhat.com> (raw)
In-Reply-To: <1248317587-11187-2-git-send-email-snitzer@redhat.com>
On Wed, Jul 22 2009 at 10:53pm -0400,
Mike Snitzer <snitzer@redhat.com> wrote:
> diff --git a/lib/format_text/format-text.c b/lib/format_text/format-text.c
> index d8e03f0..32af70b 100644
> --- a/lib/format_text/format-text.c
> +++ b/lib/format_text/format-text.c
> @@ -1382,6 +1382,8 @@ static int _text_pv_write(const struct format_type *fmt, struct physical_volume
> adjustment = pv->pe_start % pv->pe_align;
> if (adjustment)
> pv->pe_start += pv->pe_align - adjustment;
> + if (pv->pe_align_offset)
> + pv->pe_start += pv->pe_align_offset;
> }
> }
> if (!add_da
My next post of this patch series will add a negative check that makes
sure the PV's data area is not beyond the end of the device.
Mike
next prev parent reply other threads:[~2009-07-25 22:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-23 2:53 [PATCH 0/6 v6] LVM2 topology support Mike Snitzer
2009-07-23 2:53 ` [PATCH 1/6] Add --dataalignmentoffset to pvcreate to pad aligned data area Mike Snitzer
2009-07-25 22:09 ` Mike Snitzer [this message]
2009-07-23 2:53 ` [PATCH 2/6] Add devices/data_alignment_offset_detection to lvm.conf Mike Snitzer
2009-07-23 2:53 ` [PATCH 3/6] Add devices/data_alignment_detection " Mike Snitzer
2009-07-23 2:53 ` [PATCH 4/6] Improve ability to lookup primary device associated with partition Mike Snitzer
2009-07-23 2:53 ` [PATCH 5/6] Retrieve MD sysfs attributes for MD partitions Mike Snitzer
2009-07-23 2:53 ` [PATCH 6/6] Add MD, partition and topology tests to the LVM2 test-suite Mike Snitzer
-- strict thread matches above, loose matches on Subject: below --
2009-07-13 20:11 [PATCH 0/6 v5] LVM2 topology support Mike Snitzer
2009-07-13 20:11 ` [PATCH 1/6] Add --dataalignmentoffset to pvcreate to pad aligned data area Mike Snitzer
2009-07-16 15:11 ` Alasdair G Kergon
2009-07-16 20:53 ` Mike Snitzer
2009-07-16 22:11 ` Alasdair G Kergon
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=20090725220954.GA28619@redhat.com \
--to=snitzer@redhat.com \
--cc=lvm-devel@redhat.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.