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 205661 2010-03-26 01:19:29Z 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 } 1124 if (!mountreq) { 1125 error = NFSERR_AUTHERR | AUTH_TOOWEAK; 1126 vfs_unbusy(mp); 1127 goto out; 1128 } 1129 } 1130 error = VFS_FHTOVP(mp, &fhp->fh_fid, vpp); |
1131 if (error != 0) 1132 /* Make sure the server replies ESTALE to the client. */ 1133 error = ESTALE; |
1134 vfs_unbusy(mp); 1135 if (error) 1136 goto out; 1137#ifdef MNT_EXNORESPORT 1138 if (!(exflags & (MNT_EXNORESPORT|MNT_EXPUBLIC))) { 1139 saddr = (struct sockaddr_in *)nam; 1140 if ((saddr->sin_family == AF_INET || 1141 saddr->sin_family == AF_INET6) && --- 311 unchanged lines hidden --- |