]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - super0.c
Allow autoassembly to choose it's own name for the array.
[thirdparty/mdadm.git] / super0.c
index cc2f7a95a000c37bf1c0ab9646fcf0ca499835fe..7025445583e7b313409ade9fee8c6b2e1929ac7c 100644 (file)
--- a/super0.c
+++ b/super0.c
@@ -334,7 +334,7 @@ static void getinfo_super0(struct mdinfo *info, void *sbv)
        } else
                info->reshape_active = 0;
 
-       info->name[0] = 0;
+       sprintf(info->name, "%d", sb->md_minor);
        /* work_disks is calculated rather than read directly */
        for (i=0; i < MD_SB_DISKS; i++)
                if ((sb->disks[i].state & (1<<MD_DISK_SYNC)) &&