Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Ports
mdadm
0001-DDF-_write_super_to_disk-fix-anchor-header...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-DDF-_write_super_to_disk-fix-anchor-header-type.patch of Package mdadm
Commit: b87fdf4e891093e4a98f724d4a5f013fcaa94168 From: Martin Wilck <martin.wilck@ts.fujitsu.com> Date: Mon, 11 May 2015 16:09:44 +0200 Subject: [PATCH] DDF: _write_super_to_disk: fix anchor header type References: bsc#930417 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 | 1 + 1 file changed, 1 insertion(+) --- a/super-ddf.c +++ b/super-ddf.c @@ -3171,6 +3171,7 @@ static int _write_super_to_disk(struct d memcpy(&ddf->primary, &ddf->anchor, 512); memcpy(&ddf->secondary, &ddf->anchor, 512); + ddf->anchor.type = DDF_HEADER_ANCHOR; ddf->anchor.openflag = 0xFF; /* 'open' means nothing */ ddf->anchor.seq = cpu_to_be32(0xFFFFFFFF); /* no sequencing in anchor */ ddf->anchor.crc = calc_crc(&ddf->anchor, 512);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor