]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix: add support for OLCE and migration to imsm_count_failed
authorLukasz Dorau <lukasz.dorau@intel.com>
Mon, 7 Nov 2011 01:23:49 +0000 (12:23 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 7 Nov 2011 01:23:49 +0000 (12:23 +1100)
commit68fe459825ff85304a9a13128abf4ae6c7a1bfcf
tree294e4cdba1f71b3a9775230d41a7e378054f805b
parent7c3367585ec04e249dca1d6e64afcb2be9723a9b
imsm: fix: add support for OLCE and migration to imsm_count_failed

The problem occurs when array under OLCE (from 3 to 6 disks)
is assembled incrementally. Mdadm tries to start array
just after adding the third disk (this is equal to the number of disks
before the start of reshape). It does not succeed,
the volume does not assembly correctly.

The function counting failed disks (imsm_count_failed())
was fixed for migration case. Now all disk members in both maps
are checked when failed disks are counted correctly.

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