]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: fix: correct checking newly missing disks
authorLukasz Dorau <lukasz.dorau@intel.com>
Mon, 14 Nov 2011 14:52:52 +0000 (15:52 +0100)
committerNeilBrown <neilb@suse.de>
Tue, 15 Nov 2011 04:42:51 +0000 (15:42 +1100)
commita510b1c7f07ba750979ba2f213ebe261bcfc4de4
treeba8971e892f80d67b6af15c4ad7d274ad0a7b9db
parent3baa56ab61e371e064db23e5c6b2fe0f23e79d84
imsm: fix: correct checking newly missing disks

The problem occurs when RAID10 array under rebuild
(after one disk fails) is assembled incrementally.
Mdadm tries to start array just after adding the third disk
and the volume is assembled incorrectly (in degraded state).

The cause is that container_enough depends on
newly missing disks which are checked incorrectly now.
They should be checked using always the first map.

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