]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Detail.c
Find super from fd on an array.
[thirdparty/mdadm.git] / Detail.c
index 2bde9fabe239a75794b956bb77482645bc2bed38..5a408ec081c957fbf4f205ce4d230a592955f913 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -88,7 +88,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost)
                close(fd);
                return rv;
        }
-       st = super_by_version(array.major_version, array.minor_version);
+       st = super_by_fd(fd);
 
        if (fstat(fd, &stb) != 0 && !S_ISBLK(stb.st_mode))
                stb.st_rdev = 0;