summaryrefslogtreecommitdiffstats
path: root/super-intel.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2009-07-31 17:11:41 -0700
committerDan Williams <dan.j.williams@intel.com>2009-07-31 17:11:41 -0700
commit0d5a423fe7481de5ce20c6174841afeb1aadd255 (patch)
treed790fcbd5510102ac34f241621a80ab3e04ff32f /super-intel.c
parent37424f132cb3874fe51021b1b5e04445a3ba1bdb (diff)
downloadmdadm-0d5a423fe7481de5ce20c6174841afeb1aadd255.tar.gz
mdadm-0d5a423fe7481de5ce20c6174841afeb1aadd255.tar.xz
mdadm-0d5a423fe7481de5ce20c6174841afeb1aadd255.zip
imsm: fixup examine_brief to be more descriptive in the container only case
Prior to creating any arrays in a new container the output from -Ebs for a 4-disk imsm array returns: spares=4 We should at least display that these are imsm spares: ARRAY metadata=imsm spares=4 Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'super-intel.c')
-rw-r--r--super-intel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c
index 7b04a79..207d3be 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -763,8 +763,10 @@ static void brief_examine_super_imsm(struct supertype *st, int verbose)
struct intel_super *super = st->sb;
int i;
- if (!super->anchor->num_raid_devs)
+ if (!super->anchor->num_raid_devs) {
+ printf("ARRAY metadata=imsm\n");
return;
+ }
getinfo_super_imsm(st, &info);
fname_from_uuid(st, &info, nbuf, ':');