]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Detail.c
util: Introduce md_get_array_info()
[thirdparty/mdadm.git] / Detail.c
index 136875be84c19e07ed035c891db5bf1ac61e03af..d7e886a77bc1e43309e2a03424b7744db744e0b2 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -107,7 +107,7 @@ int Detail(char *dev, struct context *c)
        external = (sra != NULL && sra->array.major_version == -1
                    && sra->array.minor_version == -2);
        st = super_by_fd(fd, &subarray);
-       if (ioctl(fd, GET_ARRAY_INFO, &array) == 0) {
+       if (md_get_array_info(fd, &array) == 0) {
                inactive = 0;
        } else if (errno == ENODEV && sra) {
                if (sra->array.major_version == -1 &&