]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - util.c
get_info_super: report which other devices are thought to be working/failed.
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index c9976218962ab0ddeda0d4ff7ad40ab8c45b8b74..27989636d4ab2318cbe423f2c027c8560a0cb567 100644 (file)
--- a/util.c
+++ b/util.c
@@ -500,7 +500,7 @@ int check_raid(int fd, char *name)
        /* Looks like a raid array .. */
        fprintf(stderr, Name ": %s appears to be part of a raid array:\n",
                name);
-       st->ss->getinfo_super(st, &info);
+       st->ss->getinfo_super(st, &info, NULL);
        st->ss->free_super(st);
        crtime = info.array.ctime;
        level = map_num(pers, info.array.level);
@@ -1140,7 +1140,7 @@ struct supertype *guess_super_type(int fd, enum guess_types guess_type)
                rv = ss->load_super(st, fd, NULL);
                if (rv == 0) {
                        struct mdinfo info;
-                       st->ss->getinfo_super(st, &info);
+                       st->ss->getinfo_super(st, &info, NULL);
                        if (bestsuper == -1 ||
                            besttime < info.array.ctime) {
                                bestsuper = i;