]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Monitor.c
Monitor: array that has disappeared doesn't need spares
[thirdparty/mdadm.git] / Monitor.c
index 0e9168842f06cb4e2eacfd41bd9dcc545ef23614..d5514e9c77241c9c8de128dc7088cb42e8d53bfa 100644 (file)
--- a/Monitor.c
+++ b/Monitor.c
@@ -879,7 +879,7 @@ static void try_spare_migration(struct state *statelist, struct alert_info *info
        link_containers_with_subarrays(statelist);
        for (st = statelist; st; st = st->next)
                if (st->active < st->raid &&
-                   st->spare == 0) {
+                   st->spare == 0 && !st->err) {
                        struct domainlist *domlist = NULL;
                        int d;
                        struct state *to = st;