]> git.ipfire.org Git - thirdparty/mdadm.git/commit
FIX: imsm: OROM does not recognize degraded arrays (V2)
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>
Fri, 25 Feb 2011 01:17:18 +0000 (02:17 +0100)
committerNeilBrown <neilb@suse.de>
Sun, 27 Feb 2011 06:13:10 +0000 (17:13 +1100)
commit1a2487c2cbb3a575ca26c4350d15dd9761fa02c1
tree2818b731121761cd7a2b48f36dd7a68e6181c9bb
parent75156c4690a0c9e037b60f53430f971b0c90c902
FIX: imsm: OROM does not recognize degraded arrays (V2)

Defect description:
When we create an redundant array in mdadm and then degrade it
by disk removing, Option ROM and Windows OS does not detect any array.
Reason:
Metadata created and updated after degrading array is not compatible
with IMSM standard.

This patch synchronizes the metadata according IMSM requirements.
Following inconsistencies have been fixed:
- reset all fields in imsm_dev during creation to avoid random values
- init dev status during creation to proper state
- not reset CONFIGURED_DISK flag when disk is missing
- add ":0" suffix to the serial number for missing/failed disks
- update medatada signature after takeover operation
- mark map state as degraded after raid0->raid10 takeover

Note:
Patch reworked after Dan Willams review.

Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c