]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-ddf.c
DDF: _write_super_to_disk: fix anchor header type
authorMartin Wilck <martin.wilck@ts.fujitsu.com>
Mon, 11 May 2015 14:09:44 +0000 (16:09 +0200)
committerNeilBrown <neilb@suse.de>
Wed, 13 May 2015 00:33:35 +0000 (10:33 +1000)
commitb87fdf4e891093e4a98f724d4a5f013fcaa94168
tree139b07c45d77d27971ff7987ae03e052325f03fe
parent3c899cab4d7ae1ed64689a40ea70153ead2bf4c5
DDF: _write_super_to_disk: fix anchor header type

Since commit 30bee0201, the anchor is updated from the active
DDF header. This requires fixing the header type before the
anchor is written.

The LSI Software RAID code will reject DDF meta data with wrong
anchor type and will erase all meta data when it encounters
such a broken anchor. Thus starting Linux md once on a system
with LSI RAID BIOS may cause the meta data to get destroyed.

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