]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix: Fixes metadata after migration from Raid 0 to Raid 10
authorroot <root@gklab-128-192.igk.intel.com>
Sat, 22 Oct 2011 00:42:16 +0000 (11:42 +1100)
committerNeilBrown <neilb@suse.de>
Sat, 22 Oct 2011 00:42:16 +0000 (11:42 +1100)
commit5961eeec2fe855a164c2e3719bd0835a5b7a8a04
tree887ac21e3527efe2a169af4ab1ac90aeea0b4bfb
parent061d7da34cb6a551219afb726b2ed66af83e72ca
imsm: fix: Fixes metadata after migration from Raid 0 to Raid 10

After migration from Raid 0 to Raid 10, the metadata is incorrect,
leaving one mirror disk marked as spare and one missing disk as a member
of the array.
The reason is that the metadata update code for spare activation
procedure takes into account one spare disk only, not checking
the following ones.

Signed-off-by: Lukasz Orlowski <lukasz.orlowski@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c