summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2000-05-11 07:27:27 +0000
committergrog <grog@FreeBSD.org>2000-05-11 07:27:27 +0000
commit39725abf30172da873608246d07b3d4597ffdbd0 (patch)
treeb6418b89a5c0e1f46799c3ac0db80f8225566393 /sys/dev/vinum
parent1c2d499c3ecb7663de027b7b957117d8e77951b1 (diff)
downloadFreeBSD-src-39725abf30172da873608246d07b3d4597ffdbd0.zip
FreeBSD-src-39725abf30172da873608246d07b3d4597ffdbd0.tar.gz
Allow revive block sizes up to MAXPHYS.
Change struct plex to reflect changes to parity maintenance functions.
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumvar.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h
index 3865e12..6e4aff1 100644
--- a/sys/dev/vinum/vinumvar.h
+++ b/sys/dev/vinum/vinumvar.h
@@ -37,7 +37,7 @@
* otherwise) arising in any way out of the use of this software, even if
* advised of the possibility of such damage.
*
- * $Id: vinumvar.h,v 1.24 2000/03/01 02:34:57 grog Exp grog $
+ * $Id: vinumvar.h,v 1.25 2000/05/11 05:28:47 grog Exp grog $
* $FreeBSD$
*/
@@ -167,7 +167,7 @@ enum constants {
INITIAL_DRIVE_FREELIST = 16, /* number of entries in drive freelist */
PLEX_REGION_TABLE_SIZE = 8, /* number of entries in plex region tables */
INITIAL_LOCKS = 256, /* number of locks to allocate to a plex */
- MAX_REVIVE_BLOCKSIZE = 65536, /* maximum revive block size */
+ MAX_REVIVE_BLOCKSIZE = MAXPHYS, /* maximum revive block size */
DEFAULT_REVIVE_BLOCKSIZE = 65536, /* default revive block size */
VINUMHOSTNAMELEN = 32, /* host name field in label */
};
@@ -483,8 +483,7 @@ struct plex {
int usedlocks; /* number currently in use */
int lockwaits; /* and number of waits for locks */
struct rangelock *lock; /* ranges of locked addresses */
- u_int64_t checkblock; /* block number for check parity op */
- u_int64_t rebuildblock; /* block number for rebuild parity op */
+ off_t checkblock; /* block number for parity op */
/* Statistics */
u_int64_t reads; /* number of reads on this plex */
u_int64_t writes; /* number of writes on this plex */
@@ -621,6 +620,7 @@ enum setstateflags {
enum parityop {
checkparity,
rebuildparity,
+ rebuildandcheckparity, /* rebuildparity with the -v option */
};
#ifdef VINUMDEBUG
OpenPOWER on IntegriCloud