diff options
author | grog <grog@FreeBSD.org> | 1999-10-13 03:21:54 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-10-13 03:21:54 +0000 |
commit | 7e038455663efb2b12dafb8a59cd202019372c69 (patch) | |
tree | ff562a3a4965373092e332b6abc28ff6755e0c0c /sys/dev/vinum/vinumvar.h | |
parent | 27e8167b0fe57631329f4ed86dcd411beacee971 (diff) | |
download | FreeBSD-src-7e038455663efb2b12dafb8a59cd202019372c69.zip FreeBSD-src-7e038455663efb2b12dafb8a59cd202019372c69.tar.gz |
Change default revive block size to 60 kB (was 64 kB), and set a
maximum of 64 kB.
vinum_conf, struct drive: add fields for the current number of active
requests and the maximum ever active.
struct sd: Add fields for initialize progress.
struct mc: set the size of saved file names to MCFILENAMELEN instead
of the previous explicit constant.
Diffstat (limited to 'sys/dev/vinum/vinumvar.h')
-rw-r--r-- | sys/dev/vinum/vinumvar.h | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h index 3db4af9..3cc18a3 100644 --- a/sys/dev/vinum/vinumvar.h +++ b/sys/dev/vinum/vinumvar.h @@ -37,6 +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.21 1999/10/12 04:39:08 grog Exp grog $ * $FreeBSD$ */ @@ -176,7 +177,8 @@ 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 = 64, /* number of locks to allocate to a plex */ - DEFAULT_REVIVE_BLOCKSIZE = 65536, /* size of block to transfer in one op */ + MAX_REVIVE_BLOCKSIZE = 65536, /* maximum revive block size */ + DEFAULT_REVIVE_BLOCKSIZE = 16384, /* default revive block size */ VINUMHOSTNAMELEN = 32, /* host name field in label */ }; @@ -289,6 +291,10 @@ struct _vinum_conf { int volumes_used; int flags; + +#define VINUM_MAXACTIVE 256 /* maximum number of active requests */ + int active; /* current number of requests outstanding */ + int maxactive; /* maximum number of requests ever outstanding */ #if VINUMDEBUG int lastrq; struct buf *lastbuf; @@ -409,6 +415,9 @@ struct drive { u_int64_t offset; /* offset of entry */ u_int64_t sectors; /* and length in sectors */ } *freelist; +#define DRIVE_MAXACTIVE 10 /* maximum number of active requests */ + int active; /* current number of requests outstanding */ + int maxactive; /* maximum number of requests ever outstanding */ #ifdef VINUMDEBUG char lockfilename[16]; /* name of file from which we were locked */ int lockline; /* and the line number */ @@ -445,6 +454,10 @@ struct sd { int revive_blocksize; /* revive block size (bytes) */ int revive_interval; /* and time to wait between transfers */ struct request *waitlist; /* list of requests waiting on revive op */ + /* init parameters */ + u_int64_t initialized; /* block number of current init request */ + int init_blocksize; /* init block size (bytes) */ + int init_interval; /* and time to wait between transfers */ char name[MAXSDNAME]; /* name of subdisk */ }; @@ -552,13 +565,14 @@ struct meminfo { struct mc *malloced; /* pointer to kernel table */ }; +#define MCFILENAMELEN 16 struct mc { struct timeval time; int seq; int size; short line; caddr_t address; - char file[16]; + char file[MCFILENAMELEN]; }; /* |