Changeset View
Changeset View
Standalone View
Standalone View
head/sys/fs/nfsserver/nfs_nfsdport.c
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | static int nfssvc_srvcall(struct thread *, struct nfssvc_args *, | ||||
struct ucred *); | struct ucred *); | ||||
int nfsrv_enable_crossmntpt = 1; | int nfsrv_enable_crossmntpt = 1; | ||||
static int nfs_commit_blks; | static int nfs_commit_blks; | ||||
static int nfs_commit_miss; | static int nfs_commit_miss; | ||||
extern int nfsrv_issuedelegs; | extern int nfsrv_issuedelegs; | ||||
extern int nfsrv_dolocallocks; | extern int nfsrv_dolocallocks; | ||||
extern int nfsd_enable_stringtouid; | extern int nfsd_enable_stringtouid; | ||||
extern int nfsd_enable_uidtostring; | |||||
SYSCTL_NODE(_vfs, OID_AUTO, nfsd, CTLFLAG_RW, 0, "NFS server"); | SYSCTL_NODE(_vfs, OID_AUTO, nfsd, CTLFLAG_RW, 0, "NFS server"); | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, mirrormnt, CTLFLAG_RW, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, mirrormnt, CTLFLAG_RW, | ||||
&nfsrv_enable_crossmntpt, 0, "Enable nfsd to cross mount points"); | &nfsrv_enable_crossmntpt, 0, "Enable nfsd to cross mount points"); | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, commit_blks, CTLFLAG_RW, &nfs_commit_blks, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, commit_blks, CTLFLAG_RW, &nfs_commit_blks, | ||||
0, ""); | 0, ""); | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, commit_miss, CTLFLAG_RW, &nfs_commit_miss, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, commit_miss, CTLFLAG_RW, &nfs_commit_miss, | ||||
0, ""); | 0, ""); | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, issue_delegations, CTLFLAG_RW, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, issue_delegations, CTLFLAG_RW, | ||||
&nfsrv_issuedelegs, 0, "Enable nfsd to issue delegations"); | &nfsrv_issuedelegs, 0, "Enable nfsd to issue delegations"); | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_locallocks, CTLFLAG_RW, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_locallocks, CTLFLAG_RW, | ||||
&nfsrv_dolocallocks, 0, "Enable nfsd to acquire local locks on files"); | &nfsrv_dolocallocks, 0, "Enable nfsd to acquire local locks on files"); | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, debuglevel, CTLFLAG_RW, &nfsd_debuglevel, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, debuglevel, CTLFLAG_RW, &nfsd_debuglevel, | ||||
0, "Debug level for NFS server"); | 0, "Debug level for NFS server"); | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_stringtouid, CTLFLAG_RW, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_stringtouid, CTLFLAG_RW, | ||||
&nfsd_enable_stringtouid, 0, "Enable nfsd to accept numeric owner_names"); | &nfsd_enable_stringtouid, 0, "Enable nfsd to accept numeric owner_names"); | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_uidtostring, CTLFLAG_RW, | |||||
&nfsd_enable_uidtostring, 0, "Make nfsd always send numeric owner_names"); | |||||
#define MAX_REORDERED_RPC 16 | #define MAX_REORDERED_RPC 16 | ||||
#define NUM_HEURISTIC 1031 | #define NUM_HEURISTIC 1031 | ||||
#define NHUSE_INIT 64 | #define NHUSE_INIT 64 | ||||
#define NHUSE_INC 16 | #define NHUSE_INC 16 | ||||
#define NHUSE_MAX 2048 | #define NHUSE_MAX 2048 | ||||
static struct nfsheur { | static struct nfsheur { | ||||
▲ Show 20 Lines • Show All 3,328 Lines • Show Last 20 Lines |