]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - util.c
Add 'supertype' arg to almost all metadata methods.
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index b6681f55a0e9cda025dca7be80216b81532f7a7f..0662c4e288015b47ed17ec3fc45a370f488605c2 100644 (file)
--- a/util.c
+++ b/util.c
@@ -333,8 +333,8 @@ 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(&info, super);
-       st->ss->free_super(super);
+       st->ss->getinfo_super(st, &info, super);
+       st->ss->free_super(st, super);
        crtime = info.array.ctime;
        level = map_num(pers, info.array.level);
        if (!level) level = "-unknown-";
@@ -763,7 +763,7 @@ struct supertype *guess_super(int fd)
                rv = ss->load_super(st, fd, &sbp, NULL);
                if (rv == 0) {
                        struct mdinfo info;
-                       ss->getinfo_super(&info, sbp);
+                       st->ss->getinfo_super(st, &info, sbp);
                        if (bestsuper == -1 ||
                            besttime < info.array.ctime) {
                                bestsuper = i;