]> git.ipfire.org Git - thirdparty/mdadm.git/commit
imsm: monitor: do not finish migration if there are no failed disks
authorPrzemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Thu, 18 Apr 2013 08:51:37 +0000 (10:51 +0200)
committerNeilBrown <neilb@suse.de>
Mon, 22 Apr 2013 06:21:17 +0000 (16:21 +1000)
commit79b68f1b48b0967da999945e310aef628c9bca4c
treee5306a2b1f3becd76a3493f9a541d7da2638fcd9
parent4edb8530e889fc7b5e1b5471a0fbfd6c3c116b4a
imsm: monitor: do not finish migration if there are no failed disks

Transition from "degraded" to "recovery" made in OROM is slightly different
than the same transision in mdadm. Missing disk is not removed from list of
raid devices, but just from map. Therefore mdadm should not end migration
basing on existence of list of missing disks but should rely on count of
failed disks.

Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Tested-by: Pawel Baldysiak <pawel.baldysiak@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
super-intel.c