Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Oct 2009 19:50:00 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r198150 - stable/8/sbin/mount_nfs
Message-ID:  <200910151950.n9FJo0ic082863@svn.freebsd.org>

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



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