Dan Williams: imsm: fixup examine_brief to be more descriptive in the container only case

Martin F. Krafft madduck at alioth.debian.org
Tue Oct 27 19:21:45 UTC 2009


Module: mdadm
Branch: upstream
Commit: 0d5a423fe7481de5ce20c6174841afeb1aadd255
URL:    http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=0d5a423fe7481de5ce20c6174841afeb1aadd255

Author: Dan Williams <dan.j.williams at intel.com>
Date:   Fri Jul 31 17:11:41 2009 -0700

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 at intel.com>


---

 super-intel.c |    4 +++-
 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, ':');




More information about the pkg-mdadm-commits mailing list