summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2008-11-04 20:50:38 +1100
committerNeilBrown <neilb@suse.de>2008-11-04 20:50:38 +1100
commitcf8de6913b63a99602cc2bb6e6ea7b9f9eb694d9 (patch)
tree759f20b5b4fddbb8b6bdc4c4092e39b1c1cf81aa /super-intel.c
parent1771a6e214755311530a7099374df53d84e06a82 (diff)
downloadmdadm-cf8de6913b63a99602cc2bb6e6ea7b9f9eb694d9.tar.gz
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 'super-intel.c')
-rw-r--r--super-intel.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/super-intel.c b/super-intel.c
index f5ce06b..7ecc09f 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -611,6 +611,7 @@ static void brief_examine_super_imsm(struct supertype *st)
/* We just write a generic IMSM ARRAY entry */
struct mdinfo info;
char nbuf[64];
+ char nbuf1[64];
struct intel_super *super = st->sb;
int i;
@@ -619,15 +620,15 @@ static void brief_examine_super_imsm(struct supertype *st)
getinfo_super_imsm(st, &info);
fname_from_uuid(st, &info, nbuf,'-');
- printf("ARRAY /dev/imsm metadata=imsm auto=md UUID=%s\n", nbuf + 5);
+ printf("ARRAY metadata=imsm auto=md UUID=%s\n", nbuf + 5);
for (i = 0; i < super->anchor->num_raid_devs; i++) {
struct imsm_dev *dev = get_imsm_dev(super, i);
super->current_vol = i;
getinfo_super_imsm(st, &info);
- fname_from_uuid(st, &info, nbuf,'-');
- printf("ARRAY /dev/md/%.16s container=/dev/imsm member=%d auto=mdp UUID=%s\n",
- dev->volume, i, nbuf + 5);
+ fname_from_uuid(st, &info, nbuf1,'-');
+ printf("ARRAY /dev/md/%.16s container=%s member=%d auto=mdp UUID=%s\n",
+ dev->volume, nbuf + 5, i, nbuf1 + 5);
}
}