]> git.ipfire.org Git - thirdparty/mdadm.git/commit - super-intel.c
imsm: FIX: Function rework - imsm_count_failed()
authorAdam Kwolek <adam.kwolek@intel.com>
Tue, 6 Dec 2011 00:37:16 +0000 (11:37 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 6 Dec 2011 00:37:16 +0000 (11:37 +1100)
commitd59851384305b64af5304581c4b804bc95987744
treee8e6e0c0641729aceb5746edd6129e747daa08ae
parent3b451610b50c3e668a96fc2c9cf6e68970e36eed
imsm: FIX: Function rework - imsm_count_failed()

imsm_count_failed() assumes that on the same positions in both maps
the same disk indexes are kept. This is not always true /e.g. rebuild/
It can occur that disk taken for rebuild fails at once.
Degradation on the same positions in both maps refers to different disks.
Sum of both ords can point on not failed disk. This can cause wrong
failed disk counting.

Check both maps independently. This allows for getting real degradation
information.

Signed-off-by: Adam Kwolek <adam.kwolek@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c