]> sourceware.org Git - lvm2.git/commit
Fix PV datalign when for values starting prior to MDA area.
authorMilan Broz <mbroz@redhat.com>
Thu, 7 May 2009 12:11:50 +0000 (12:11 +0000)
committerMilan Broz <mbroz@redhat.com>
Thu, 7 May 2009 12:11:50 +0000 (12:11 +0000)
commit5c93cdba2d5c187be8f63337efa9feb45d46560e
treeb551e67fb3c8de25c8ac1fb32fb52579e6404133
parent610646095b83366aecaa5e6904c860711071837a
Fix PV datalign when for values starting prior to MDA area.

The dataalign value must always be aligned according
to MDA area.
The currect code checks if calculated value collides with
MDA area but not if the value is so small that it is
located before MDA starts.

Unfortunatelly there can be also MDA in the end of the device.

The patch adds simple check to avoid this miscalculation.
Patch expects that first MDA always starts on <= pagesize boundary
(this is true for all allowed label sector parameters).
WHATS_NEW
lib/format_text/format-text.c
test/t-pvcreate-usage.sh
This page took 0.029571 seconds and 5 git commands to generate.