]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
imsm: fixup examine_brief to be more descriptive in the container only case
authorDan Williams <dan.j.williams@intel.com>
Sat, 1 Aug 2009 00:11:41 +0000 (17:11 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 1 Aug 2009 00:11:41 +0000 (17:11 -0700)
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>
super-intel.c

index 7b04a79ee26975facb7fe794bea4ec82214d6241..207d3be952fa78f8bf4c26332812b3d73a912a63 100644 (file)
@@ -763,8 +763,10 @@ static void brief_examine_super_imsm(struct supertype *st, int verbose)
        struct intel_super *super = st->sb;
        int i;
 
        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;
                return;
+       }
 
        getinfo_super_imsm(st, &info);
        fname_from_uuid(st, &info, nbuf, ':');
 
        getinfo_super_imsm(st, &info);
        fname_from_uuid(st, &info, nbuf, ':');