Deleted Added
full compact
nfs_subs.c (48274) nfs_subs.c (48859)
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.8 (Berkeley) 5/22/95
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.8 (Berkeley) 5/22/95
37 * $Id: nfs_subs.c,v 1.77 1999/06/26 02:46:30 mckusick Exp $
37 * $Id: nfs_subs.c,v 1.78 1999/06/27 11:44:19 peter 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>

--- 1209 unchanged lines hidden (view full) ---

1255 md = *mdp;
1256 t1 = (mtod(md, caddr_t) + md->m_len) - *dposp;
1257 if ((error = nfsm_disct(mdp, dposp, NFSX_FATTR(v3), t1, &cp2)) != 0)
1258 return (error);
1259 fp = (struct nfs_fattr *)cp2;
1260 if (v3) {
1261 vtyp = nfsv3tov_type(fp->fa_type);
1262 vmode = fxdr_unsigned(u_short, fp->fa_mode);
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>

--- 1209 unchanged lines hidden (view full) ---

1255 md = *mdp;
1256 t1 = (mtod(md, caddr_t) + md->m_len) - *dposp;
1257 if ((error = nfsm_disct(mdp, dposp, NFSX_FATTR(v3), t1, &cp2)) != 0)
1258 return (error);
1259 fp = (struct nfs_fattr *)cp2;
1260 if (v3) {
1261 vtyp = nfsv3tov_type(fp->fa_type);
1262 vmode = fxdr_unsigned(u_short, fp->fa_mode);
1263 rdev = umakedev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
1263 rdev = makeudev(fxdr_unsigned(int, fp->fa3_rdev.specdata1),
1264 fxdr_unsigned(int, fp->fa3_rdev.specdata2));
1265 fxdr_nfsv3time(&fp->fa3_mtime, &mtime);
1266 } else {
1267 vtyp = nfsv2tov_type(fp->fa_type);
1268 vmode = fxdr_unsigned(u_short, fp->fa_mode);
1269 /*
1270 * XXX
1271 *

--- 1010 unchanged lines hidden ---
1264 fxdr_unsigned(int, fp->fa3_rdev.specdata2));
1265 fxdr_nfsv3time(&fp->fa3_mtime, &mtime);
1266 } else {
1267 vtyp = nfsv2tov_type(fp->fa_type);
1268 vmode = fxdr_unsigned(u_short, fp->fa_mode);
1269 /*
1270 * XXX
1271 *

--- 1010 unchanged lines hidden ---