diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-08-01 02:11:41 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-08-01 02:11:41 +0200 |
commit | 0d5a423fe7481de5ce20c6174841afeb1aadd255 (patch) | |
tree | d790fcbd5510102ac34f241621a80ab3e04ff32f | |
parent | fix examine_brief segfault (diff) | |
download | 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>
-rw-r--r-- | super-intel.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/super-intel.c b/super-intel.c index 7b04a79e..207d3be9 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, ':'); |