nfs_serv.c (48362) | nfs_serv.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_serv.c 8.8 (Berkeley) 7/31/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_serv.c 8.8 (Berkeley) 7/31/95 |
37 * $Id: nfs_serv.c,v 1.79 1999/06/23 04:44:11 julian Exp $ | 37 * $Id: nfs_serv.c,v 1.80 1999/06/30 04:29:13 julian Exp $ |
38 */ 39 40/* 41 * nfs version 2 and 3 server calls to vnode ops 42 * - these routines generally have 3 phases 43 * 1 - break down and validate rpc request in mbuf list 44 * 2 - do the vnode ops for the request 45 * (surprisingly ?? many are very similar to syscalls in vfs_syscalls.c) --- 1824 unchanged lines hidden (view full) --- 1870 goto out; 1871 } 1872 VATTR_NULL(vap); 1873 nfsm_srvsattr(vap); 1874 if (vtyp == VCHR || vtyp == VBLK) { 1875 nfsm_dissect(tl, u_int32_t *, 2 * NFSX_UNSIGNED); 1876 major = fxdr_unsigned(u_int32_t, *tl++); 1877 minor = fxdr_unsigned(u_int32_t, *tl); | 38 */ 39 40/* 41 * nfs version 2 and 3 server calls to vnode ops 42 * - these routines generally have 3 phases 43 * 1 - break down and validate rpc request in mbuf list 44 * 2 - do the vnode ops for the request 45 * (surprisingly ?? many are very similar to syscalls in vfs_syscalls.c) --- 1824 unchanged lines hidden (view full) --- 1870 goto out; 1871 } 1872 VATTR_NULL(vap); 1873 nfsm_srvsattr(vap); 1874 if (vtyp == VCHR || vtyp == VBLK) { 1875 nfsm_dissect(tl, u_int32_t *, 2 * NFSX_UNSIGNED); 1876 major = fxdr_unsigned(u_int32_t, *tl++); 1877 minor = fxdr_unsigned(u_int32_t, *tl); |
1878 vap->va_rdev = umakedev(major, minor); | 1878 vap->va_rdev = makeudev(major, minor); |
1879 } 1880 1881 /* 1882 * Iff doesn't exist, create it. 1883 */ 1884 if (nd.ni_vp) { 1885 error = EEXIST; 1886 goto out; --- 2128 unchanged lines hidden --- | 1879 } 1880 1881 /* 1882 * Iff doesn't exist, create it. 1883 */ 1884 if (nd.ni_vp) { 1885 error = EEXIST; 1886 goto out; --- 2128 unchanged lines hidden --- |