svn commit: r197298 - head/sbin/mount_nfs
Rick Macklem
rmacklem at FreeBSD.org
Thu Sep 17 19:08:16 UTC 2009
Author: rmacklem
Date: Thu Sep 17 19:08:15 2009
New Revision: 197298
URL: http://svn.freebsd.org/changeset/base/197298
Log:
Change the default transport protocol for use by the Mount protocol
from UDP to TCP, so that it is consistent with TCP for NFS, which
became the default at r176198. Without this change, doing an NFS mount
against a server that only supports UDP would result in an unusable
mount point if a transport protocol option wasn't specified for the
mount.
Approved by: kib (mentor)
MFC after: 3 days
Modified:
head/sbin/mount_nfs/mount_nfs.c
Modified: head/sbin/mount_nfs/mount_nfs.c
==============================================================================
--- head/sbin/mount_nfs/mount_nfs.c Thu Sep 17 19:05:47 2009 (r197297)
+++ head/sbin/mount_nfs/mount_nfs.c Thu Sep 17 19:08:15 2009 (r197298)
@@ -104,7 +104,7 @@ struct nfhret {
#define OF_NOINET6 8
int retrycnt = -1;
int opflags = 0;
-int nfsproto = IPPROTO_UDP;
+int nfsproto = IPPROTO_TCP;
int mnttcp_ok = 1;
int noconn = 0;
char *portspec = NULL; /* Server nfs port; NULL means look up via rpcbind. */
More information about the svn-src-all
mailing list