nfs_srvsubs.c (216632) | nfs_srvsubs.c (222167) |
---|---|
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/nfsserver/nfs_srvsubs.c 216632 2010-12-21 23:12:45Z pjd $"); | 36__FBSDID("$FreeBSD: head/sys/nfsserver/nfs_srvsubs.c 222167 2011-05-22 01:07:54Z rmacklem $"); |
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 "opt_inet6.h" --- 1078 unchanged lines hidden (view full) --- 1123 mountreq = TRUE; 1124 } 1125 if (!mountreq) { 1126 error = NFSERR_AUTHERR | AUTH_TOOWEAK; 1127 vfs_unbusy(mp); 1128 goto out; 1129 } 1130 } | 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 "opt_inet6.h" --- 1078 unchanged lines hidden (view full) --- 1123 mountreq = TRUE; 1124 } 1125 if (!mountreq) { 1126 error = NFSERR_AUTHERR | AUTH_TOOWEAK; 1127 vfs_unbusy(mp); 1128 goto out; 1129 } 1130 } |
1131 error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp); | 1131 error = VFS_FHTOVP(mp, &fhp->fh_fid, LK_EXCLUSIVE, vpp); |
1132 if (error) { 1133 /* Make sure the server replies ESTALE to the client. */ 1134 error = ESTALE; 1135 vfs_unbusy(mp); 1136 goto out; 1137 } 1138#ifdef MNT_EXNORESPORT 1139 if (!(exflags & (MNT_EXNORESPORT|MNT_EXPUBLIC))) { --- 316 unchanged lines hidden --- | 1132 if (error) { 1133 /* Make sure the server replies ESTALE to the client. */ 1134 error = ESTALE; 1135 vfs_unbusy(mp); 1136 goto out; 1137 } 1138#ifdef MNT_EXNORESPORT 1139 if (!(exflags & (MNT_EXNORESPORT|MNT_EXPUBLIC))) { --- 316 unchanged lines hidden --- |