From owner-freebsd-fs@FreeBSD.ORG Thu Sep 22 03:58:16 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id EB006106567B for ; Thu, 22 Sep 2011 03:58:16 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 172-17-198-245.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 1F85114DA22; Thu, 22 Sep 2011 03:58:13 +0000 (UTC) Message-ID: <4E7AB254.4080908@FreeBSD.org> Date: Wed, 21 Sep 2011 20:58:12 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110912 Thunderbird/6.0.2 MIME-Version: 1.0 To: Rick Macklem References: <373396436.1795807.1316649054817.JavaMail.root@erie.cs.uoguelph.ca> In-Reply-To: <373396436.1795807.1316649054817.JavaMail.root@erie.cs.uoguelph.ca> X-Enigmail-Version: undefined OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org Subject: Re: NFS umount takes ages when no DNS available X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2011 03:58:17 -0000 On 09/21/2011 16:50, Rick Macklem wrote: > I'm not sure why the author felt that the getaddinfo() needed to be > done before the check for the need to do an rpc? I can't speak to the original author's intent, but I do know that going all the way back to 1994 the advice I always received was to put critical NFS server hosts in /etc/hosts. Perhaps given that fundamental assumption this seemed reasonable. The code goes all the way back to: r74462 | alfred | 2001-03-19 04:50:13 -0800 (Mon, 19 Mar 2001) I'll leave the commit log itself as an exercise for the reader, since it's lengthy and informative, but not necessarily directly relevant to this problem. hth, Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/