nfs_subs.c (128263) | nfs_subs.c (130640) |
---|---|
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 --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 33 */ 34 35#include <sys/cdefs.h> | 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 --- 19 unchanged lines hidden (view full) --- 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * 32 * @(#)nfs_subs.c 8.8 (Berkeley) 5/22/95 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/nfsclient/nfs_subs.c 128263 2004-04-14 23:23:55Z peadar $"); | 36__FBSDID("$FreeBSD: head/sys/nfsclient/nfs_subs.c 130640 2004-06-17 17:16:53Z phk $"); |
37 38/* 39 * These functions support the macros and help fiddle mbuf chains for 40 * the nfs op functions. They do things like create the rpc header and 41 * copy data between mbuf chains and uio lists. 42 */ 43 44#include <sys/param.h> --- 445 unchanged lines hidden (view full) --- 490 t1 = (mtod(md, caddr_t) + md->m_len) - *dposp; 491 cp2 = nfsm_disct(mdp, dposp, NFSX_FATTR(v3), t1); 492 if (cp2 == NULL) 493 return EBADRPC; 494 fp = (struct nfs_fattr *)cp2; 495 if (v3) { 496 vtyp = nfsv3tov_type(fp->fa_type); 497 vmode = fxdr_unsigned(u_short, fp->fa_mode); | 37 38/* 39 * These functions support the macros and help fiddle mbuf chains for 40 * the nfs op functions. They do things like create the rpc header and 41 * copy data between mbuf chains and uio lists. 42 */ 43 44#include <sys/param.h> --- 445 unchanged lines hidden (view full) --- 490 t1 = (mtod(md, caddr_t) + md->m_len) - *dposp; 491 cp2 = nfsm_disct(mdp, dposp, NFSX_FATTR(v3), t1); 492 if (cp2 == NULL) 493 return EBADRPC; 494 fp = (struct nfs_fattr *)cp2; 495 if (v3) { 496 vtyp = nfsv3tov_type(fp->fa_type); 497 vmode = fxdr_unsigned(u_short, fp->fa_mode); |
498 rdev = makeudev(fxdr_unsigned(int, fp->fa3_rdev.specdata1), | 498 rdev = makedev(fxdr_unsigned(int, fp->fa3_rdev.specdata1), |
499 fxdr_unsigned(int, fp->fa3_rdev.specdata2)); 500 fxdr_nfsv3time(&fp->fa3_mtime, &mtime); 501 } else { 502 vtyp = nfsv2tov_type(fp->fa_type); 503 vmode = fxdr_unsigned(u_short, fp->fa_mode); 504 /* 505 * XXX 506 * --- 587 unchanged lines hidden --- | 499 fxdr_unsigned(int, fp->fa3_rdev.specdata2)); 500 fxdr_nfsv3time(&fp->fa3_mtime, &mtime); 501 } else { 502 vtyp = nfsv2tov_type(fp->fa_type); 503 vmode = fxdr_unsigned(u_short, fp->fa_mode); 504 /* 505 * XXX 506 * --- 587 unchanged lines hidden --- |