summaryrefslogtreecommitdiffstats
path: root/super0.c
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2006-05-23 06:46:40 +0000
committerNeil Brown <neilb@suse.de>2006-05-23 06:46:40 +0000
commit8a46fe8487986f96e5313156336c02cc551282c8 (patch)
treee9c53c4285bf45486948fc555c8df487c4220268 /super0.c
parent83b6208e890f29115c56a252de82dfd7c50488d0 (diff)
downloadmdadm-8a46fe8487986f96e5313156336c02cc551282c8.tar.gz
mdadm-8a46fe8487986f96e5313156336c02cc551282c8.tar.xz
mdadm-8a46fe8487986f96e5313156336c02cc551282c8.zip
Allow autoassembly to choose it's own name for the array.
This cannot be used yet, but it is working towards auto-assembly. When auto-assembling an array, we make a name in /dev/md/ giving a number (from the peferred minor) or name (from set-name). Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'super0.c')
-rw-r--r--super0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/super0.c b/super0.c
index cc2f7a9..7025445 100644
--- 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)) &&