Deleted Added
full compact
nfs_serv.c (129899) nfs_serv.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_serv.c 8.8 (Berkeley) 7/31/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_serv.c 8.8 (Berkeley) 7/31/95
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/nfsserver/nfs_serv.c 129899 2004-05-31 19:08:22Z rwatson $");
36__FBSDID("$FreeBSD: head/sys/nfsserver/nfs_serv.c 130640 2004-06-17 17:16:53Z phk $");
37
38/*
39 * nfs version 2 and 3 server calls to vnode ops
40 * - these routines generally have 3 phases
41 * 1 - break down and validate rpc request in mbuf list
42 * 2 - do the vnode ops for the request
43 * (surprisingly ?? many are very similar to syscalls in vfs_syscalls.c)
44 * 3 - build the rpc reply in an mbuf list

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

2055 goto out;
2056 }
2057 VATTR_NULL(vap);
2058 nfsm_srvsattr(vap);
2059 if (vtyp == VCHR || vtyp == VBLK) {
2060 tl = nfsm_dissect(u_int32_t *, 2 * NFSX_UNSIGNED);
2061 major = fxdr_unsigned(u_int32_t, *tl++);
2062 minor = fxdr_unsigned(u_int32_t, *tl);
37
38/*
39 * nfs version 2 and 3 server calls to vnode ops
40 * - these routines generally have 3 phases
41 * 1 - break down and validate rpc request in mbuf list
42 * 2 - do the vnode ops for the request
43 * (surprisingly ?? many are very similar to syscalls in vfs_syscalls.c)
44 * 3 - build the rpc reply in an mbuf list

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

2055 goto out;
2056 }
2057 VATTR_NULL(vap);
2058 nfsm_srvsattr(vap);
2059 if (vtyp == VCHR || vtyp == VBLK) {
2060 tl = nfsm_dissect(u_int32_t *, 2 * NFSX_UNSIGNED);
2061 major = fxdr_unsigned(u_int32_t, *tl++);
2062 minor = fxdr_unsigned(u_int32_t, *tl);
2063 vap->va_rdev = makeudev(major, minor);
2063 vap->va_rdev = makedev(major, minor);
2064 }
2065
2066 /*
2067 * Iff doesn't exist, create it.
2068 */
2069 if (nd.ni_vp) {
2070 error = EEXIST;
2071 goto out;

--- 2418 unchanged lines hidden ---
2064 }
2065
2066 /*
2067 * Iff doesn't exist, create it.
2068 */
2069 if (nd.ni_vp) {
2070 error = EEXIST;
2071 goto out;

--- 2418 unchanged lines hidden ---