Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/nfsserver/nfs_nfsdport.c
Show First 20 Lines • Show All 118 Lines • ▼ Show 20 Lines | static int nfssvc_srvcall(struct thread *, struct nfssvc_args *, | ||||
struct ucred *); | struct ucred *); | ||||
static void nfsvno_updateds(struct vnode *, struct ucred *, struct thread *); | static void nfsvno_updateds(struct vnode *, struct ucred *, struct thread *); | ||||
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 struct nfsdevicehead nfsrv_devidhead; | extern struct nfsdevicehead nfsrv_devidhead; | ||||
static int nfsrv_createiovec(int, struct mbuf **, struct mbuf **, | static int nfsrv_createiovec(int, struct mbuf **, struct mbuf **, | ||||
struct iovec **); | struct iovec **); | ||||
static int nfsrv_createiovec_extpgs(int, int, struct mbuf **, | static int nfsrv_createiovec_extpgs(int, int, struct mbuf **, | ||||
struct mbuf **, struct iovec **); | struct mbuf **, struct iovec **); | ||||
static int nfsrv_createiovecw(int, struct mbuf *, char *, struct iovec **, | static int nfsrv_createiovecw(int, struct mbuf *, char *, struct iovec **, | ||||
int *); | int *); | ||||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
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, | NFSD_VNET_DECLARE(int, nfsd_enable_stringtouid); | ||||
&nfsd_enable_stringtouid, 0, "Enable nfsd to accept numeric owner_names"); | SYSCTL_INT(_vfs_nfsd, OID_AUTO, enable_stringtouid, | ||||
CTLFLAG_NFSD_VNET | CTLFLAG_RW, &NFSD_VNET_NAME(nfsd_enable_stringtouid), | |||||
0, "Enable nfsd to accept numeric owner_names"); | |||||
static int nfsrv_pnfsgetdsattr = 1; | static int nfsrv_pnfsgetdsattr = 1; | ||||
SYSCTL_INT(_vfs_nfsd, OID_AUTO, pnfsgetdsattr, CTLFLAG_RW, | SYSCTL_INT(_vfs_nfsd, OID_AUTO, pnfsgetdsattr, CTLFLAG_RW, | ||||
&nfsrv_pnfsgetdsattr, 0, "When set getattr gets DS attributes via RPC"); | &nfsrv_pnfsgetdsattr, 0, "When set getattr gets DS attributes via RPC"); | ||||
/* | /* | ||||
* nfsrv_dsdirsize can only be increased and only when the nfsd threads are | * nfsrv_dsdirsize can only be increased and only when the nfsd threads are | ||||
* not running. | * not running. | ||||
* The dsN subdirectories for the increased values must have been created | * The dsN subdirectories for the increased values must have been created | ||||
▲ Show 20 Lines • Show All 7,082 Lines • Show Last 20 Lines |