diff options
author | NeilBrown <neilb@suse.de> | 2010-11-22 09:35:25 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-22 09:35:25 +0100 |
commit | a5d85af748aafe3e3830b9d16faa5c92e783b171 (patch) | |
tree | 226da96fa25afdd3bc97ead7e91b5e59b10a8e8f /managemon.c | |
parent | detail/wait: better handling of monitoring sync action. (diff) | |
download | mdadm-a5d85af748aafe3e3830b9d16faa5c92e783b171.tar.xz mdadm-a5d85af748aafe3e3830b9d16faa5c92e783b171.zip |
get_info_super: report which other devices are thought to be working/failed.
To accurately detect when an array has been split and is now being
recombined, we need to track which other devices each thinks is
working.
We should never include a device in an array if it thinks that the
primary device has failed.
This patch just allows get_info_super to return a list of devices
and whether they are thought to be working or not.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'managemon.c')
-rw-r--r-- | managemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/managemon.c b/managemon.c index bab03979..b6f99252 100644 --- a/managemon.c +++ b/managemon.c @@ -276,7 +276,7 @@ static void add_disk_to_container(struct supertype *st, struct mdinfo *sd) */ st2 = dup_super(st); if (st2->ss->load_super(st2, dfd, NULL) == 0) { - st2->ss->getinfo_super(st, &info); + st2->ss->getinfo_super(st, &info, NULL); if (st->ss->compare_super(st, st2) == 0 && info.disk.raid_disk >= 0) { /* Looks like a good member of array. |