Make a couple of variables 64-bit quantities to avoid overflow issues

when arrays have a large number of stripes.  Remove unused variable
(recon_stripes_done).  Thanks to Dieter Roelants for the report,
suggestions, and testing.  Addresses PR#36878.
This commit is contained in:
oster 2007-09-16 02:13:35 +00:00
parent 2872c55cb0
commit 46ae972f1b

View File

@ -1,4 +1,4 @@
/* $NetBSD: rf_raid.h,v 1.36 2007/03/04 06:02:39 christos Exp $ */
/* $NetBSD: rf_raid.h,v 1.37 2007/09/16 02:13:35 oster Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
* All rights reserved.
@ -204,9 +204,8 @@ struct RF_Raid_s {
/*
* Statistics
*/
int parity_rewrite_stripes_done;
int recon_stripes_done;
int copyback_stripes_done;
RF_StripeCount_t parity_rewrite_stripes_done;
RF_StripeCount_t copyback_stripes_done;
int recon_in_progress;
int parity_rewrite_in_progress;