From a5d85af748aafe3e3830b9d16faa5c92e783b171 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 22 Nov 2010 19:35:25 +1100 Subject: 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 --- Query.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Query.c') diff --git a/Query.c b/Query.c index 8847be7e..f9857d6d 100644 --- a/Query.c +++ b/Query.c @@ -90,7 +90,7 @@ int Query(char *dev) close(fd); if (superror == 0) { /* array might be active... */ - st->ss->getinfo_super(st, &info); + st->ss->getinfo_super(st, &info, NULL); if (st->ss == &super0) { mddev = get_md_name(info.array.md_minor); disc.number = info.disk.number; -- cgit v1.2.3