]> sourceware.org Git - lvm2.git/commit
Fix _mda_setup() to not check first mda's size before pe_align rounding.
authorsnitzer <snitzer>
Thu, 30 Jul 2009 17:19:31 +0000 (17:19 +0000)
committersnitzer <snitzer>
Thu, 30 Jul 2009 17:19:31 +0000 (17:19 +0000)
commit48416fcdc1c5d04f0ba28821838be5209dd0a354
tree1747fc9e0dd83dde812207e82145e54ff79d06ea
parent5dab79f1c71deac521f4a5d412ba205e2a34b1a8
Fix _mda_setup() to not check first mda's size before pe_align rounding.

Without this fix rounding the end of the first mda to a pe_align
boundary could silently exceed the disk_size.

Final 'if (start1 + mda_size1 > disk_size)' block serves as a safety
net.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
WHATS_NEW
lib/format_text/format-text.c
This page took 0.0352 seconds and 5 git commands to generate.