diff options
author | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-06-25 03:28:17 +0000 |
---|---|---|
committer | Constantine Sapuntzakis <csapuntz@cvs.openbsd.org> | 2001-06-25 03:28:17 +0000 |
commit | 02698d2f8cd41e95a05746c99ee27bcc29a1549d (patch) | |
tree | 6ff1e61ba9a420b787527749c074929ad022fa76 /sys/nfs/nfs_serv.c | |
parent | eebaafe0f06c811aadafe68ad8a541c33236040c (diff) |
Remove NQNFS
Diffstat (limited to 'sys/nfs/nfs_serv.c')
-rw-r--r-- | sys/nfs/nfs_serv.c | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/sys/nfs/nfs_serv.c b/sys/nfs/nfs_serv.c index 77551a159c1..bbec7502a49 100644 --- a/sys/nfs/nfs_serv.c +++ b/sys/nfs/nfs_serv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_serv.c,v 1.21 2001/03/25 08:26:17 csapuntz Exp $ */ +/* $OpenBSD: nfs_serv.c,v 1.22 2001/06/25 03:28:08 csapuntz Exp $ */ /* $NetBSD: nfs_serv.c,v 1.25 1996/03/02 15:55:52 jtk Exp $ */ /* @@ -81,7 +81,6 @@ #include <nfs/nfs.h> #include <nfs/xdr_subs.h> #include <nfs/nfsm_subs.h> -#include <nfs/nqnfs.h> #include <nfs/nfs_var.h> /* Global vars */ @@ -193,7 +192,6 @@ nfsrv_getattr(nfsd, slp, procp, mrq) nfsm_reply(0); return (0); } - nqsrv_getl(vp, ND_READ); error = VOP_GETATTR(vp, &va, cred, procp); vput(vp); nfsm_reply(NFSX_FATTR(nfsd->nd_flag & ND_NFSV3)); @@ -286,7 +284,6 @@ nfsrv_setattr(nfsd, slp, procp, mrq) nfsm_srvwcc_data(preat_ret, &preat, postat_ret, &va); return (0); } - nqsrv_getl(vp, ND_WRITE); if (v3) { error = preat_ret = VOP_GETATTR(vp, &preat, cred, procp); if (!error && gcheck && @@ -384,7 +381,6 @@ nfsrv_lookup(nfsd, slp, procp, mrq) nfsm_srvpostop_attr(dirattr_ret, &dirattr); return (0); } - nqsrv_getl(nd.ni_startdir, ND_READ); vrele(nd.ni_startdir); FREE(nd.ni_cnd.cn_pnbuf, M_NAMEI); vp = nd.ni_vp; @@ -487,7 +483,6 @@ nfsrv_readlink(nfsd, slp, procp, mrq) error = ENXIO; goto out; } - nqsrv_getl(vp, ND_READ); error = VOP_READLINK(vp, uiop, cred); out: getret = VOP_GETATTR(vp, &attr, cred, procp); @@ -570,7 +565,6 @@ nfsrv_read(nfsd, slp, procp, mrq) error = (vp->v_type == VDIR) ? EISDIR : EACCES; } if (!error) { - nqsrv_getl(vp, ND_READ); if ((error = nfsrv_access(vp, VREAD, cred, rdonly, procp, 1)) != 0) error = nfsrv_access(vp, VEXEC, cred, rdonly, procp, 1); } @@ -785,7 +779,6 @@ nfsrv_write(nfsd, slp, procp, mrq) error = (vp->v_type == VDIR) ? EISDIR : EACCES; } if (!error) { - nqsrv_getl(vp, ND_WRITE); error = nfsrv_access(vp, VWRITE, cred, rdonly, procp, 1); } if (error) { @@ -1050,7 +1043,6 @@ loop1: } else vp = NULL; if (!error) { - nqsrv_getl(vp, ND_WRITE); error = nfsrv_access(vp, VWRITE, cred, rdonly, procp, 1); } @@ -1323,7 +1315,6 @@ nfsrv_create(nfsd, slp, procp, mrq) if (nd.ni_vp == NULL) { if (va.va_type == VREG || va.va_type == VSOCK) { vrele(nd.ni_startdir); - nqsrv_getl(nd.ni_dvp, ND_WRITE); error = VOP_CREATE(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &va); if (!error) { FREE(nd.ni_cnd.cn_pnbuf, M_NAMEI); @@ -1350,7 +1341,6 @@ nfsrv_create(nfsd, slp, procp, mrq) return (0); } else va.va_rdev = (dev_t)rdev; - nqsrv_getl(nd.ni_dvp, ND_WRITE); error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &va); if (error) { @@ -1399,7 +1389,6 @@ nfsrv_create(nfsd, slp, procp, mrq) error = nfsrv_access(vp, VWRITE, cred, (nd.ni_cnd.cn_flags & RDONLY), procp, 0); if (!error) { - nqsrv_getl(vp, ND_WRITE); tempsize = va.va_size; VATTR_NULL(&va); va.va_size = tempsize; @@ -1535,7 +1524,6 @@ nfsrv_mknod(nfsd, slp, procp, mrq) va.va_type = vtyp; if (vtyp == VSOCK) { vrele(nd.ni_startdir); - nqsrv_getl(nd.ni_dvp, ND_WRITE); error = VOP_CREATE(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &va); if (!error) FREE(nd.ni_cnd.cn_pnbuf, M_NAMEI); @@ -1548,7 +1536,6 @@ nfsrv_mknod(nfsd, slp, procp, mrq) vput(nd.ni_dvp); goto out; } - nqsrv_getl(nd.ni_dvp, ND_WRITE); error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &va); if (error) { vrele(nd.ni_startdir); @@ -1671,8 +1658,6 @@ nfsrv_remove(nfsd, slp, procp, mrq) #endif out: if (!error) { - nqsrv_getl(nd.ni_dvp, ND_WRITE); - nqsrv_getl(vp, ND_WRITE); error = VOP_REMOVE(nd.ni_dvp, nd.ni_vp, &nd.ni_cnd); } else { VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); @@ -1820,10 +1805,6 @@ nfsrv_rename(nfsd, slp, procp, mrq) error = -1; out: if (!error) { - nqsrv_getl(fromnd.ni_dvp, ND_WRITE); - nqsrv_getl(tdvp, ND_WRITE); - if (tvp) - nqsrv_getl(tvp, ND_WRITE); error = VOP_RENAME(fromnd.ni_dvp, fromnd.ni_vp, &fromnd.ni_cnd, tond.ni_dvp, tond.ni_vp, &tond.ni_cnd); } else { @@ -1948,8 +1929,6 @@ nfsrv_link(nfsd, slp, procp, mrq) error = EXDEV; out: if (!error) { - nqsrv_getl(vp, ND_WRITE); - nqsrv_getl(xp, ND_WRITE); error = VOP_LINK(nd.ni_dvp, vp, &nd.ni_cnd); } else { VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); @@ -2059,7 +2038,6 @@ nfsrv_symlink(nfsd, slp, procp, mrq) error = EEXIST; goto out; } - nqsrv_getl(nd.ni_dvp, ND_WRITE); error = VOP_SYMLINK(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &va, pathcp); if (error) vrele(nd.ni_startdir); @@ -2192,7 +2170,6 @@ nfsrv_mkdir(nfsd, slp, procp, mrq) error = EEXIST; goto out; } - nqsrv_getl(nd.ni_dvp, ND_WRITE); error = VOP_MKDIR(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &va); if (!error) { vp = nd.ni_vp; @@ -2305,8 +2282,6 @@ nfsrv_rmdir(nfsd, slp, procp, mrq) error = EBUSY; out: if (!error) { - nqsrv_getl(nd.ni_dvp, ND_WRITE); - nqsrv_getl(vp, ND_WRITE); error = VOP_RMDIR(nd.ni_dvp, nd.ni_vp, &nd.ni_cnd); } else { VOP_ABORTOP(nd.ni_dvp, &nd.ni_cnd); @@ -2426,7 +2401,6 @@ nfsrv_readdir(nfsd, slp, procp, mrq) nfsm_srvpostop_attr(getret, &at); return (0); } - nqsrv_getl(vp, ND_READ); if (v3) { error = getret = VOP_GETATTR(vp, &at, cred, procp); #ifdef NFS3_STRICTVERF @@ -2694,7 +2668,6 @@ nfsrv_readdirplus(nfsd, slp, procp, mrq) error = NFSERR_BAD_COOKIE; #endif if (!error) { - nqsrv_getl(vp, ND_READ); error = nfsrv_access(vp, VEXEC, cred, rdonly, procp, 0); } if (error) { |