Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/nfsserver/nfs_nfsdstate.c
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | SYSCTL_INT(_vfs_nfsd, OID_AUTO, sessionhashsize, CTLFLAG_RDTUN, | ||||
&nfsrv_sessionhashsize, 0, | &nfsrv_sessionhashsize, 0, | ||||
"Size of session hash table set via loader.conf"); | "Size of session hash table set via loader.conf"); | ||||
static int nfsrv_v4statelimit = NFSRV_V4STATELIMIT; | static int nfsrv_v4statelimit = NFSRV_V4STATELIMIT; | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, v4statelimit, CTLFLAG_RWTUN, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, v4statelimit, CTLFLAG_RWTUN, | ||||
&nfsrv_v4statelimit, 0, | &nfsrv_v4statelimit, 0, | ||||
"High water limit for NFSv4 opens+locks+delegations"); | "High water limit for NFSv4 opens+locks+delegations"); | ||||
static int nfsrv_writedelegifpos = 0; | |||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, writedelegifpos, CTLFLAG_RW, | |||||
&nfsrv_writedelegifpos, 0, | |||||
"Issue a write delegation for read opens if possible"); | |||||
/* | /* | ||||
* Hash lists for nfs V4. | * Hash lists for nfs V4. | ||||
*/ | */ | ||||
struct nfsclienthashhead *nfsclienthash; | struct nfsclienthashhead *nfsclienthash; | ||||
struct nfslockhashhead *nfslockhash; | struct nfslockhashhead *nfslockhash; | ||||
struct nfssessionhash *nfssessionhash; | struct nfssessionhash *nfssessionhash; | ||||
#endif /* !APPLEKEXT */ | #endif /* !APPLEKEXT */ | ||||
static u_int32_t nfsrv_openpluslock = 0, nfsrv_delegatecnt = 0; | static u_int32_t nfsrv_openpluslock = 0, nfsrv_delegatecnt = 0; | ||||
static time_t nfsrvboottime; | static time_t nfsrvboottime; | ||||
static int nfsrv_writedelegifpos = 1; | |||||
static int nfsrv_returnoldstateid = 0, nfsrv_clients = 0; | static int nfsrv_returnoldstateid = 0, nfsrv_clients = 0; | ||||
static int nfsrv_clienthighwater = NFSRV_CLIENTHIGHWATER; | static int nfsrv_clienthighwater = NFSRV_CLIENTHIGHWATER; | ||||
static int nfsrv_nogsscallback = 0; | static int nfsrv_nogsscallback = 0; | ||||
/* local functions */ | /* local functions */ | ||||
static void nfsrv_dumpaclient(struct nfsclient *clp, | static void nfsrv_dumpaclient(struct nfsclient *clp, | ||||
struct nfsd_dumpclients *dumpp); | struct nfsd_dumpclients *dumpp); | ||||
static void nfsrv_freeopenowner(struct nfsstate *stp, int cansleep, | static void nfsrv_freeopenowner(struct nfsstate *stp, int cansleep, | ||||
▲ Show 20 Lines • Show All 6,002 Lines • Show Last 20 Lines |