From 1d1a9f87a4fbeeb76bcc6f9b4933f3d250a284db Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Mon, 22 Nov 2010 19:35:25 +1100 Subject: Incremental - fix small bug in count_active. If the first device found has a much smaller event count than a subsequent device, that device will not be entered in the 'avail' array properly. Signed-off-by: NeilBrown --- Incremental.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Incremental.c') diff --git a/Incremental.c b/Incremental.c index 23f59800..e74e52b5 100644 --- a/Incremental.c +++ b/Incremental.c @@ -708,6 +708,7 @@ static int count_active(struct supertype *st, int mdfd, char **availp, cnt = 1; cnt1 = 0; memset(avail, 0, info.disk.raid_disk); max_events = info.events; + avail[info.disk.raid_disk] = 2; st->ss->getinfo_super(st, bestinfo, NULL); } } -- cgit v1.2.3