svn commit: r198150 - stable/8/sbin/mount_nfs

Rick Macklem rmacklem at FreeBSD.org
Thu Oct 15 19:50:01 UTC 2009


Author: rmacklem
Date: Thu Oct 15 19:50:00 2009
New Revision: 198150
URL: http://svn.freebsd.org/changeset/base/198150

Log:
  MFC r197298:
  Change the default transport protocol for use by the Mount protocol
  and the NFS Null RPC done by mount_nfs from UDP to TCP, so that it is
  consistent with the kernel, which already uses NFS over TCP by
  default. Without this change, doing an NFS mount
  against a server that only supports UDP results in an unusable
  mount point if a transport protocol option wasn't specified for the
  mount.
  
  Approved by:	re (kib)

Modified:
  stable/8/sbin/mount_nfs/   (props changed)
  stable/8/sbin/mount_nfs/mount_nfs.c

Modified: stable/8/sbin/mount_nfs/mount_nfs.c
==============================================================================
--- stable/8/sbin/mount_nfs/mount_nfs.c	Thu Oct 15 18:51:19 2009	(r198149)
+++ stable/8/sbin/mount_nfs/mount_nfs.c	Thu Oct 15 19:50:00 2009	(r198150)
@@ -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