From: NeilBrown Date: Fri, 18 Dec 2015 02:51:54 +0000 (+1100) Subject: Detail: don't assume a particular 'disk' number of missing devices. X-Git-Tag: mdadm-3.4~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78a5dc039b9344762b8f7cde2d159b482993eb2d;p=thirdparty%2Fmdadm.git Detail: don't assume a particular 'disk' number of missing devices. When a particular raid-disk is missing, we don't know which disk number it should have, and reporting a number could result in duplicate numbers (with v1.x metadata - never with the old 0.90). So set the default to -1 and recoginise that when printing. Signed-off-by: NeilBrown --- diff --git a/Detail.c b/Detail.c index cbf1f9ad..ef2aabd4 100644 --- a/Detail.c +++ b/Detail.c @@ -299,7 +299,8 @@ int Detail(char *dev, struct context *c) for (d = 0; d < max_disks * 2; d++) { disks[d].state = (1<