nfs_common.c (30813) | nfs_common.c (31016) |
---|---|
1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94 | 1/* 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Rick Macklem at The University of Guelph. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94 |
37 * $Id: nfs_subs.c,v 1.45 1997/10/28 14:06:22 bde Exp $ | 37 * $Id: nfs_subs.c,v 1.46 1997/10/28 15:59:08 bde Exp $ |
38 */ 39 40/* 41 * These functions support the macros and help fiddle mbuf chains for 42 * the nfs op functions. They do things like create the rpc header and 43 * copy data between mbuf chains and uio lists. 44 */ 45#include <sys/param.h> --- 1165 unchanged lines hidden (view full) --- 1211 caddr_t cp2; 1212 int error = 0, rdev; 1213 struct mbuf *md; 1214 enum vtype vtyp; 1215 u_short vmode; 1216 struct timespec mtime; 1217 struct vnode *nvp; 1218 int v3 = NFS_ISV3(vp); | 38 */ 39 40/* 41 * These functions support the macros and help fiddle mbuf chains for 42 * the nfs op functions. They do things like create the rpc header and 43 * copy data between mbuf chains and uio lists. 44 */ 45#include <sys/param.h> --- 1165 unchanged lines hidden (view full) --- 1211 caddr_t cp2; 1212 int error = 0, rdev; 1213 struct mbuf *md; 1214 enum vtype vtyp; 1215 u_short vmode; 1216 struct timespec mtime; 1217 struct vnode *nvp; 1218 int v3 = NFS_ISV3(vp); |
1219 struct proc *p = curproc; | |
1220 1221 md = *mdp; 1222 t1 = (mtod(md, caddr_t) + md->m_len) - *dposp; 1223 if (error = nfsm_disct(mdp, dposp, NFSX_FATTR(v3), t1, &cp2)) 1224 return (error); 1225 fp = (struct nfs_fattr *)cp2; 1226 if (v3) { 1227 vtyp = nfsv3tov_type(fp->fa_type); --- 865 unchanged lines hidden --- | 1219 1220 md = *mdp; 1221 t1 = (mtod(md, caddr_t) + md->m_len) - *dposp; 1222 if (error = nfsm_disct(mdp, dposp, NFSX_FATTR(v3), t1, &cp2)) 1223 return (error); 1224 fp = (struct nfs_fattr *)cp2; 1225 if (v3) { 1226 vtyp = nfsv3tov_type(fp->fa_type); --- 865 unchanged lines hidden --- |