]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Monitor: few bug fixes for spare migration
authorAnna Czarnowska <anna.czarnowska@intel.com>
Sun, 28 Nov 2010 22:51:27 +0000 (09:51 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 28 Nov 2010 22:51:27 +0000 (09:51 +1100)
commitff044d6ba707c22ab33c508640dd14ab537c1c16
treec265dbd7eec322df983a9f2d3484404036b18167
parent976915080efc2e829fff8efaffb3dc76dc294975
Monitor: few bug fixes for spare migration

1. If array not changed we should still report any degraded
    - another array may have a new spare that we can move.
2. Array with err=1 can't give a spare.
3. We look for spares in "from" not "st" which is supertype
   and has devname=NULL.

Signed-off-by: Anna Czarnowska <anna.czarnowska@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Monitor.c