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. */
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to