diff options
author | rmacklem <rmacklem@FreeBSD.org> | 2013-06-21 19:41:30 +0000 |
---|---|---|
committer | rmacklem <rmacklem@FreeBSD.org> | 2013-06-21 19:41:30 +0000 |
commit | 2bc76c9d964e90f6acf4e47a2b0642ab27888130 (patch) | |
tree | 86cebec4c5f09f90200a3cb81b6c1b5d5414f037 /sys/fs | |
parent | df388a8521da97e28c1c7e9c490fd68e6f80eb9e (diff) | |
download | FreeBSD-src-2bc76c9d964e90f6acf4e47a2b0642ab27888130.zip FreeBSD-src-2bc76c9d964e90f6acf4e47a2b0642ab27888130.tar.gz |
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
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/nfsclient/nfs_clvfsops.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/fs/nfsclient/nfs_clvfsops.c b/sys/fs/nfsclient/nfs_clvfsops.c index b717210..45a5133 100644 --- a/sys/fs/nfsclient/nfs_clvfsops.c +++ b/sys/fs/nfsclient/nfs_clvfsops.c @@ -592,12 +592,6 @@ nfs_decode_args(struct mount *mp, struct nfsmount *nmp, struct nfs_args *argp, 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); |