]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Detail.c
Detail: show correct raid level when the array is inactive
[thirdparty/mdadm.git] / Detail.c
index 24eeba0f993e289ce8efb921414eb6c1ca0db27a..b6587c8c8db356b04ea3613f2e02d902a64d2943 100644 (file)
--- a/Detail.c
+++ b/Detail.c
@@ -224,7 +224,10 @@ int Detail(char *dev, struct context *c)
        }
 
        /* Ok, we have some info to print... */
-       str = map_num(pers, array.level);
+       if (inactive)
+               str = map_num(pers, info->array.level);
+       else
+               str = map_num(pers, array.level);
 
        if (c->export) {
                if (array.raid_disks) {