Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Jun 2013 19:41:30 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252067 - head/sys/fs/nfsclient
Message-ID:  <201306211941.r5LJfUUw011705@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306211941.r5LJfUUw011705>