diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 10:50:38 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 10:50:38 +0100 |
commit | cf8de6913b63a99602cc2bb6e6ea7b9f9eb694d9 (patch) | |
tree | 759f20b5b4fddbb8b6bdc4c4092e39b1c1cf81aa /super1.c | |
parent | config: Support container=uuid as alternative to container=/dev/name in mdadm... (diff) | |
download | mdadm-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 "); |