return rv;
}
- if (share)
+ if (share)
if (check_one_sharer(c->scan))
return 1;
}
}
-
while (! finished) {
int new_found = 0;
struct state *st;
if (check_array(st, mdstat, c->test, &info,
increments, c->prefer))
anydegraded = 1;
-
+
/* now check if there are any new devices found in mdstat */
if (c->scan)
new_found = add_new_arrays(mdstat, &statelist, c->test,
close(fd);
return 0;
}
-
+
err = st->ss->load_container(st, fd, NULL);
close(fd);
if (err)
return 0;
-
+
if (from == to) {
/* We must check if number of active disks has not increased
* since ioctl in main loop. mdmon may have added spare
return dev;
}
-
static void try_spare_migration(struct state *statelist, struct alert_info *info)
{
struct state *from;
/* subarray monitored without parent container
* we can't move spares here */
continue;
-
+
if (to->parent)
/* member of a container */
to = to->parent;