autofs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* "Use bind instead of nfs if host is localhost" feature is broken? removed?
@ 2011-03-10 23:59 Nye Liu
  2011-03-13  1:32 ` Ian Kent
  0 siblings, 1 reply; 5+ messages in thread
From: Nye Liu @ 2011-03-10 23:59 UTC (permalink / raw)
  To: autofs

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.

Do i have to use this everywhere now?

foo	(1),host(2):/export/foo

The behavior is more like what I expect, but it seems wasteful.

-- 
Nye Liu
nliu@mrv.com
(818) 772-6235x248
(818) 772-0576 fax

"Who would be stupid enough to quote a fictitious character?"
	-- Don Quixote

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: "Use bind instead of nfs if host is localhost" feature is broken? removed?
  2011-03-10 23:59 "Use bind instead of nfs if host is localhost" feature is broken? removed? Nye Liu
@ 2011-03-13  1:32 ` Ian Kent
  2011-03-15 23:27   ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Kent @ 2011-03-13  1:32 UTC (permalink / raw)
  To: Nye Liu; +Cc: autofs

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?

> 
> Do i have to use this everywhere now?
> 
> foo	(1),host(2):/export/foo
> 
> The behavior is more like what I expect, but it seems wasteful.
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: "Use bind instead of nfs if host is localhost" feature is broken? removed?
  2011-03-13  1:32 ` Ian Kent
@ 2011-03-15 23:27   ` H. Peter Anvin
  2011-03-16  4:33     ` Nye Liu
  2011-03-16 22:42     ` Nye Liu
  0 siblings, 2 replies; 5+ messages in thread
From: H. Peter Anvin @ 2011-03-15 23:27 UTC (permalink / raw)
  To: Ian Kent; +Cc: Nye Liu, autofs

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: "Use bind instead of nfs if host is localhost" feature is broken? removed?
  2011-03-15 23:27   ` H. Peter Anvin
@ 2011-03-16  4:33     ` Nye Liu
  2011-03-16 22:42     ` Nye Liu
  1 sibling, 0 replies; 5+ messages in thread
From: Nye Liu @ 2011-03-16  4:33 UTC (permalink / raw)
  To: H. Peter Anvin; +Cc: autofs@linux.kernel.org, Ian Kent

On 3/15/2011 4:27 PM, H. Peter Anvin wrote:
> 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.


Indeed. /etc/hosts had "127.0.0.1 host", and not the "real" ip matching dns.

I changed /etc/hosts from 127.0.0.1 to its real ip, and autofs now 
properly detects that "host" is local and uses bind now, as it should. I 
verified this has nothing to do with autofs version and more to do with 
kernel revision.

2.6.32 "works", 2.6.37 is "broken".

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: "Use bind instead of nfs if host is localhost" feature is broken? removed?
  2011-03-15 23:27   ` H. Peter Anvin
  2011-03-16  4:33     ` Nye Liu
@ 2011-03-16 22:42     ` Nye Liu
  1 sibling, 0 replies; 5+ messages in thread
From: Nye Liu @ 2011-03-16 22:42 UTC (permalink / raw)
  To: autofs@linux.kernel.org

On 3/15/2011 4:27 PM, H. Peter Anvin wrote:
> 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.


Indeed. /etc/hosts had "127.0.0.1 host", and not the "real" ip matching dns.

I changed /etc/hosts from 127.0.0.1 to its real ip, and autofs now 
properly detects that "host" is local and uses bind now, as it should. I 
verified this has nothing to do with autofs version and more to do with 
kernel revision.

2.6.32 "works", 2.6.37 is "broken".

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-16 22:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-10 23:59 "Use bind instead of nfs if host is localhost" feature is broken? removed? Nye Liu
2011-03-13  1:32 ` Ian Kent
2011-03-15 23:27   ` H. Peter Anvin
2011-03-16  4:33     ` Nye Liu
2011-03-16 22:42     ` Nye Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).