From: Adam Kwolek Date: Sun, 13 Feb 2011 22:25:57 +0000 (+1100) Subject: imsm: Add information about failed disk to '-E' option X-Git-Tag: mdadm-3.2.1~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7095bccbb0f367fd111869db29871e18560c1027;p=thirdparty%2Fmdadm.git imsm: Add information about failed disk to '-E' option During metadata printout in '-E' option failed disk map field information is missing. Add this information to mdadm '-E' option output. Signed-off-by: Adam Kwolek Signed-off-by: NeilBrown --- diff --git a/super-intel.c b/super-intel.c index f2efc6fd..456eacc6 100644 --- a/super-intel.c +++ b/super-intel.c @@ -897,6 +897,12 @@ static void print_imsm_dev(struct imsm_dev *dev, char *uuid, int disk_idx) printf("]"); } printf("\n"); + printf(" Failed disk : "); + if (map->failed_disk_num == 0xff) + printf("none"); + else + printf("%i", map->failed_disk_num); + printf("\n"); slot = get_imsm_disk_slot(map, disk_idx); if (slot >= 0) { ord = get_imsm_ord_tbl_ent(dev, slot, -1);