From owner-svn-src-all@FreeBSD.ORG Sun Sep 20 22:49:31 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45EA6106566B; Sun, 20 Sep 2009 22:49:31 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 95E9E8FC12; Sun, 20 Sep 2009 22:49:30 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAHdOtkqDaFvH/2dsb2JhbADNJoQbBYFY X-IronPort-AV: E=Sophos;i="4.44,420,1249272000"; d="scan'208";a="48725481" Received: from danube.cs.uoguelph.ca ([131.104.91.199]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 20 Sep 2009 18:49:29 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by danube.cs.uoguelph.ca (Postfix) with ESMTP id C06F810844CB; Sun, 20 Sep 2009 18:49:29 -0400 (EDT) X-Virus-Scanned: amavisd-new at danube.cs.uoguelph.ca Received: from danube.cs.uoguelph.ca ([127.0.0.1]) by localhost (danube.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2Gs+7tgfPr53; Sun, 20 Sep 2009 18:49:28 -0400 (EDT) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by danube.cs.uoguelph.ca (Postfix) with ESMTP id A83A9108442B; Sun, 20 Sep 2009 18:49:28 -0400 (EDT) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id n8KMt5Y11297; Sun, 20 Sep 2009 18:55:05 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Sun, 20 Sep 2009 18:55:05 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: "M. Warner Losh" In-Reply-To: <20090920.155347.-675685342.imp@bsdimp.com> Message-ID: References: <4AB495DD.1010006@FreeBSD.org> <20090919.230053.58383965.imp@bsdimp.com> <20090920.155347.-675685342.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: svn-src-head@FreeBSD.org, rmacklem@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, jhb@FreeBSD.org Subject: Re: svn commit: r197298 - head/sbin/mount_nfs X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2009 22:49:31 -0000 On Sun, 20 Sep 2009, M. Warner Losh wrote: > In message: > Rick Macklem writes: > : > : > : On Sat, 19 Sep 2009, M. Warner Losh wrote: > : > : > : > : > : Hmm, it might actually be nice to be able to change those at some point > : > : as well. I have looked at this in the past and it is quite deeply > : > : buried in libc. :-/ > : > > : > What's the benefit for forcing a tcp connection for the portmapper > : > RPCs? They just happen once at startup... > : > Just fyi, I just looked at what the "competition" does and was a bit surprised at what I found: Linux (not really current system): - starts out talking to Portmapper over TCP and gets a dump of the other machine's portmap list, then switches to UDP to get the port#s for Mount and NFS, even if "tcp" was specified on the mount. - Uses UDP for both Mount and NFS by default, but switches to using TCP for both when "tcp" is specified. (As noted, this was a rather old Linux system, so I wouldn't be surprised if this has changed/is different for other distros.) Solaris10: - Always uses UDP for Portmapper and Mount, no matter what is specified on the mount command. - Uses TCP for NFS by default of UDP if "proto=udp" is specified as a mount option. I was surprised that Solaris10 did this. I've also noticed that the "mntudp" option doesn't do what the man page says it does. The man page indicates that it forces the use of UDP for Mount, even when TCP is used for NFS (like Solaris10 does by default). However, the current mount_nfs.c switches to UDP for both Mount and NFS when "mntudp" is specified. (It was changed to that behaviour by r180435. It would be nice to have it so that a default mount without "udp" nor "tcp" specified doesn't create the unusable mount point for a server that is UDP only, as reported by the email to freebsd-stable on Sep. 11 with subject "NFS issues on 8.0-BETA4. r197298 did that, but made it "less Solaris10 compatible". I tend to like being Solaris compatible, but I'm not sure if that makes sense for this? rick