From 9e70a453edde9571d84372ea5c13a1fab219caac Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Fri, 18 Dec 2015 13:49:30 +1100 Subject: [PATCH] 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 --- Detail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Detail.c b/Detail.c index 200f65f..cbf1f9a 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<