]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: use existing locations for primary and secondary DDF structure
authormwilck@arcor.de <mwilck@arcor.de>
Fri, 1 Mar 2013 22:28:23 +0000 (23:28 +0100)
committerNeilBrown <neilb@suse.de>
Mon, 4 Mar 2013 03:19:50 +0000 (14:19 +1100)
commit097bcf005780ddf0bb9169b8b7c4330a8c603799
tree056758ee1ac410870516adb62149e007db3b3fb8
parent7f798aca5bb643c8489a855996d40913d21c7722
DDF: use existing locations for primary and secondary DDF structure

Some RAID BIOSes apparently use hard-coded LBA offsets (presumably
from the end of the disk) for the primary and secondary DDF
structure, ignoring the values given in the DDF anchor. This is
broken BIOS behavior, but it will cause any changes made by MD
(e.g. setting the init_state flag after a full initialization)
to be "forgotten" after the next reboot.

This patch fixes this by using the exiting LBA locations if
available. Verified that this fixes MD+LSI Mega Software RAID
BIOS.

Signed-off-by: Martin Wilck <mwilck@arcor.de>
Signed-off-by: NeilBrown <neilb@suse.de>
super-ddf.c