From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: "Use bind instead of nfs if host is localhost" feature is broken? removed? Date: Tue, 15 Mar 2011 16:27:14 -0700 Message-ID: <4D7FF5D2.3080107@zytor.com> References: <20110310235943.GA19588@mrv.com> <1299979935.2906.5.camel@perseus> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1299979935.2906.5.camel@perseus> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Ian Kent Cc: Nye Liu , autofs@linux.kernel.org On 03/12/2011 05:32 PM, Ian Kent wrote: > On Thu, 2011-03-10 at 15:59 -0800, Nye Liu wrote: >> I have been relying on the behavior that >> >> foo host:/export/foo >> >> uses 'bind' if host is localhost, and 'nfs' otherwise... >> >> i.e. if i am on the machine "host", /export/foo is mounted on /mnt/foo using >> bind, but if i am not on "host", host:/export/foo is mounted on /mnt/foo >> using nfs. >> >> But the latest version of autofs no longer does that. > > What latest version? > I believe this is related to a change in the network layer in Linux, which breaks the localhost test not just for autofs but for almost any application which uses the same, portable technique for determining the localness of a host address. -hpa