Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Sep 2009 19:08:16 +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: r197298 - head/sbin/mount_nfs
Message-ID:  <200909171908.n8HJ8GQs067202@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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. */



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