summaryrefslogtreecommitdiffstats
path: root/super1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 10:50:38 +0100
committerNeilBrown <neilb@suse.de>2008-11-04 10:50:38 +0100
commitcf8de6913b63a99602cc2bb6e6ea7b9f9eb694d9 (patch)
tree759f20b5b4fddbb8b6bdc4c4092e39b1c1cf81aa /super1.c
parentconfig: Support container=uuid as alternative to container=/dev/name in mdadm... (diff)
downloadmdadm-cf8de6913b63a99602cc2bb6e6ea7b9f9eb694d9.tar.xz
mdadm-cf8de6913b63a99602cc2bb6e6ea7b9f9eb694d9.zip
Don't give array name in --examine --brief output if it is doubtful.
Now that mdadm.conf doesn't need an array name, we don't need to give one if the array cannot reliably provide one.
Diffstat (limited to 'super1.c')
-rw-r--r--super1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/super1.c b/super1.c
index 4cfd7860..3d392cb0 100644
--- a/super1.c
+++ b/super1.c
@@ -353,9 +353,11 @@ static void brief_examine_super1(struct supertype *st)
else if (sb->set_name[0])
nm = sb->set_name;
else
- nm = "??";
+ nm = NULL;
- printf("ARRAY /dev/md/%s level=%s ", nm, c?c:"-unknown-");
+ printf("ARRAY%s%s level=%s ",
+ nm ? " /dev/md/":"", nm,
+ c?c:"-unknown-");
sb_offset = __le64_to_cpu(sb->super_offset);
if (sb_offset <= 4)
printf("metadata=1.1 ");