svn commit: r252067 - head/sys/fs/nfsclient

Rick Macklem rmacklem at FreeBSD.org
Fri Jun 21 19:41:32 UTC 2013


Author: rmacklem
Date: Fri Jun 21 19:41:30 2013
New Revision: 252067
URL: http://svnweb.freebsd.org/changeset/base/252067

Log:
  Since some NFSv4 servers enforce the requirement for a reserved port#,
  enable use of the (no)resvport mount option for NFSv4. I had thought
  that the RFC required that non-reserved port #s be allowed, but I couldn't
  find it in the RFC.
  
  MFC after:	2 weeks

Modified:
  head/sys/fs/nfsclient/nfs_clvfsops.c

Modified: head/sys/fs/nfsclient/nfs_clvfsops.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clvfsops.c	Fri Jun 21 19:30:32 2013	(r252066)
+++ head/sys/fs/nfsclient/nfs_clvfsops.c	Fri Jun 21 19:41:30 2013	(r252067)
@@ -592,12 +592,6 @@ nfs_decode_args(struct mount *mp, struct
 		nmp->nm_flag &= ~NFSMNT_RDIRPLUS;
 	}
 
-	/* Clear NFSMNT_RESVPORT for NFSv4, since it is not required. */
-	if ((argp->flags & NFSMNT_NFSV4) != 0) {
-		argp->flags &= ~NFSMNT_RESVPORT;
-		nmp->nm_flag &= ~NFSMNT_RESVPORT;
-	}
-
 	/* Re-bind if rsrvd port requested and wasn't on one */
 	adjsock = !(nmp->nm_flag & NFSMNT_RESVPORT)
 		  && (argp->flags & NFSMNT_RESVPORT);


More information about the svn-src-all mailing list