diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-12-17 21:14:36 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1995-12-17 21:14:36 +0000 |
| commit | b8dce649f17f6608e7550dc4d6da9d2006cf0db5 (patch) | |
| tree | 0abc9dfd2498cac032fdc78b264f4351548fce5a /sys/nfs/nfs_serv.c | |
| parent | 3ac9f819ae6220840810e456696e197eb69712ec (diff) | |
Notes
Diffstat (limited to 'sys/nfs/nfs_serv.c')
| -rw-r--r-- | sys/nfs/nfs_serv.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 0173c99677c3..3fc96a4c6215 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_serv.c 8.3 (Berkeley) 1/12/94 - * $Id: nfs_serv.c,v 1.25 1995/10/29 15:32:59 phk Exp $ + * $Id: nfs_serv.c,v 1.26 1995/12/07 12:47:25 davidg Exp $ */ /* @@ -70,6 +70,7 @@ #include <sys/dirent.h> #include <sys/stat.h> #include <sys/kernel.h> +#include <sys/sysctl.h> #include <ufs/ufs/dir.h> #include <vm/vm.h> @@ -95,11 +96,14 @@ nfstype nfsv3_type[9] = { NFNON, NFREG, NFDIR, NFBLK, NFCHR, NFLNK, NFSOCK, NFFIFO, NFNON }; int nfsrvw_procrastinate = NFS_GATHERDELAY * 1000; -#ifdef NFS_ASYNC -int nfs_async = 1; -#else int nfs_async; -#endif +SYSCTL_INT(_fs_nfs, OID_AUTO, async, CTLFLAG_RW, &nfs_async, 0, ""); + + +static int nfsrv_access __P((struct vnode *,int,struct ucred *,int, + struct proc *)); +static void nfsrvw_coalesce __P((struct nfsrv_descript *, + struct nfsrv_descript *)); /* * nfs v3 access service @@ -1198,7 +1202,7 @@ loop1: * - put nfsd on owp's nd_coalesce list * NB: Must be called at splsoftclock(). */ -void +static void nfsrvw_coalesce(owp, nfsd) register struct nfsrv_descript *owp; register struct nfsrv_descript *nfsd; @@ -3390,7 +3394,7 @@ nfsrv_noop(nfsd, slp, procp, mrq) * this because it opens a security hole, but since the nfs server opens * a security hole the size of a barn door anyhow, what the heck. */ -int +static int nfsrv_access(vp, flags, cred, rdonly, p) register struct vnode *vp; int flags; |
