From: NeilBrown Date: Fri, 18 Dec 2015 02:49:30 +0000 (+1100) Subject: Detail: report correct raid-disk for removed drives. X-Git-Tag: mdadm-3.4~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e70a453edde9571d84372ea5c13a1fab219caac;p=thirdparty%2Fmdadm.git Detail: report correct raid-disk for removed drives. Back in Commit: 8057db46a15d ("Detail: fix handling of 'disks' array.") when we doubled the size of the 'disks' array to handle primary and replacement, we should have halved the setting of the default raid_disk number. Reported-by: Coly Li Signed-off-by: NeilBrown --- diff --git a/Detail.c b/Detail.c index 200f65fa..cbf1f9ad 100644 --- a/Detail.c +++ b/Detail.c @@ -299,7 +299,7 @@ int Detail(char *dev, struct context *c) for (d = 0; d < max_disks * 2; d++) { disks[d].state = (1<