diff options
author | NeilBrown <neilb@suse.de> | 2010-11-22 19:35:25 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-11-22 19:35:25 +1100 |
commit | 1d1a9f87a4fbeeb76bcc6f9b4933f3d250a284db (patch) | |
tree | 7f147967400f9898cc504fca5027afc193233027 /Incremental.c | |
parent | 02e7c5b75cd4ad5176441add156389c71dab6e3a (diff) |
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 <neilb@suse.de>
Diffstat (limited to 'Incremental.c')
-rw-r--r-- | Incremental.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } } |