summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum/vinumvar.h
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>1999-09-28 22:58:07 +0000
committergrog <grog@FreeBSD.org>1999-09-28 22:58:07 +0000
commit0b4dce3508105407fc60cbbba644a3f23188ac78 (patch)
treeb51cf53d68710943379fe953888e15dbc11c4e0f /sys/dev/vinum/vinumvar.h
parentceed056964905858dead57f394f024e126110320 (diff)
downloadFreeBSD-src-0b4dce3508105407fc60cbbba644a3f23188ac78.zip
FreeBSD-src-0b4dce3508105407fc60cbbba644a3f23188ac78.tar.gz
struct plex: Add variables checkblock and rebuildblock to keep track
of parity check and rebuild operations. This enables us to stop the operation and restart at a later time. enum parityop: Trivial enum to decide what parityops() is going to do.
Diffstat (limited to 'sys/dev/vinum/vinumvar.h')
-rw-r--r--sys/dev/vinum/vinumvar.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h
index 9f7c92a..3db4af9 100644
--- a/sys/dev/vinum/vinumvar.h
+++ b/sys/dev/vinum/vinumvar.h
@@ -178,7 +178,6 @@ enum constants {
INITIAL_LOCKS = 64, /* number of locks to allocate to a plex */
DEFAULT_REVIVE_BLOCKSIZE = 65536, /* size of block to transfer in one op */
VINUMHOSTNAMELEN = 32, /* host name field in label */
- VINUM_BSIZE_BEST = 4096, /* best sector size */
};
/* device numbers */
@@ -476,6 +475,8 @@ 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 */
/* Statistics */
u_int64_t reads; /* number of reads on this plex */
u_int64_t writes; /* number of writes on this plex */
@@ -607,6 +608,12 @@ enum setstateflags {
setstate_configuring = 2, /* we're currently configuring, don't save */
};
+/* Operations for parityops to perform. */
+enum parityop {
+ checkparity,
+ rebuildparity,
+};
+
#ifdef VINUMDEBUG
/* Debugging stuff */
enum debugflags {
OpenPOWER on IntegriCloud