From owner-freebsd-current@FreeBSD.ORG Mon Sep 14 16:22:34 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5740106566B; Mon, 14 Sep 2009 16:22:34 +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 5C3418FC17; Mon, 14 Sep 2009 16:22:34 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAP8KrkqDaFvK/2dsb2JhbADdJYQYBQ X-IronPort-AV: E=Sophos;i="4.44,384,1249272000"; d="scan'208";a="47975773" Received: from fraser.cs.uoguelph.ca ([131.104.91.202]) by esa-jnhn-pri.mail.uoguelph.ca with ESMTP; 14 Sep 2009 12:22:12 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by fraser.cs.uoguelph.ca (Postfix) with ESMTP id 5B0F6109C271; Mon, 14 Sep 2009 12:22:12 -0400 (EDT) X-Virus-Scanned: amavisd-new at fraser.cs.uoguelph.ca Received: from fraser.cs.uoguelph.ca ([127.0.0.1]) by localhost (fraser.cs.uoguelph.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bB7R+FrdmaAJ; Mon, 14 Sep 2009 12:22:11 -0400 (EDT) Received: from muncher.cs.uoguelph.ca (muncher.cs.uoguelph.ca [131.104.91.102]) by fraser.cs.uoguelph.ca (Postfix) with ESMTP id ABBA3109C2BA; Mon, 14 Sep 2009 12:22:11 -0400 (EDT) Received: from localhost (rmacklem@localhost) by muncher.cs.uoguelph.ca (8.11.7p3+Sun/8.11.6) with ESMTP id n8EGRWW21507; Mon, 14 Sep 2009 12:27:33 -0400 (EDT) X-Authentication-Warning: muncher.cs.uoguelph.ca: rmacklem owned process doing -bs Date: Mon, 14 Sep 2009 12:27:32 -0400 (EDT) From: Rick Macklem X-X-Sender: rmacklem@muncher.cs.uoguelph.ca To: Andriy Gapon In-Reply-To: <4AAE4513.6030701@icyb.net.ua> Message-ID: References: <200909140858.34592.jhb@freebsd.org> <4AAE4513.6030701@icyb.net.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-fs@freebsd.org, doug@polands.org, qing.li@bluecoat.com, freebsd-current@freebsd.org Subject: Re: NFS client defaults to a mix of UDP and TCP X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Sep 2009 16:22:34 -0000 On Mon, 14 Sep 2009, Andriy Gapon wrote: > on 14/09/2009 15:58 John Baldwin said the following: >> >> Yes. I know of folks would love to have NFS use only TCP, including the >> initial RPC portmapper requests. IMO an NFS mount should use TCP for >> everything and a UDP mount should use UDP for everything by default. >> > > And another fact - it seems that NFS umount unconditionally uses UDP for "something": > > /* > * Report to mountd-server which nfsname > * has been unmounted. > */ > if (ai != NULL && !(fflag & MNT_FORCE) && do_rpc) { > clp = clnt_create(hostp, MOUNTPROG, MOUNTVERS, "udp"); > ... > Yep. This one is somewhat less critical IMO, since this RPC is just fyi for the mountd on the server and, if it fails for any reason, only normally affects the output of "showmount" and doesn't break the umount. (That doesn't mean I don't think it should be fixed, but it can be done separately from resolving what mount_nfs needs to default to.) rick