]> 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)
commitf7712c77b8bd2034e018af97f2ec530f6ad3ed59
treeb551e67fb3c8de25c8ac1fb32fb52579e6404133
parentfd436c316a2479319e26833fe50b4698e51332b0
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.03615 seconds and 5 git commands to generate.