public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Automount ghost option
@ 2005-11-18 17:28 Olivier Croquette
  2005-11-19  3:35 ` Ian Kent
  0 siblings, 1 reply; 4+ messages in thread
From: Olivier Croquette @ 2005-11-18 17:28 UTC (permalink / raw)
  To: LKML; +Cc: autofs, raven


I want the automount mount points to be visible even if they are not 
mounted.

It seems the "ghost" option implements that. I can find several 
references on the internet which indicates it is available, like:
http://gentoo-wiki.com/HOWTO_Auto_mount_filesystems_(AUTOFS)

Nevertheless, on some recent distributions I have tested on, this option 
is not available.

Can anyone tell me in which version of automount it is present?
Or is it a distribution specific patch?

Thanks!

Olivier



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

* Re: Automount ghost option
  2005-11-18 17:28 Automount ghost option Olivier Croquette
@ 2005-11-19  3:35 ` Ian Kent
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2005-11-19  3:35 UTC (permalink / raw)
  To: Olivier Croquette; +Cc: LKML, autofs

On Fri, 18 Nov 2005, Olivier Croquette wrote:

> 
> I want the automount mount points to be visible even if they are not mounted.
> 
> It seems the "ghost" option implements that. I can find several references on
> the internet which indicates it is available, like:
> http://gentoo-wiki.com/HOWTO_Auto_mount_filesystems_(AUTOFS)

This looks like a good description of to do it.

> 
> Nevertheless, on some recent distributions I have tested on, this option is
> not available.

For example?

It is available on all recent RedHat distributions, Debian 3.1, latest 
SuSE and although last time I looked Gentoo is a little behind on their 
release and patches it should still work. I also recommend a fairly recent 
2.6 kernel in order to get the latest bug fixes. I've fallen somewhat 
behind in updating my 2.4 patches but those that are available at 

http://www.kernel.org/pub/linux/daemons/autofs/v4

should work adequately.

> 
> Can anyone tell me in which version of automount it is present?
> Or is it a distribution specific patch?

Preferably 4.1.4 with at least the patches autofs-4.1.4-*.patch from 
kernel.org above applied but distributions that have a 4.1 version should 
work.

You need to be aware that some maps cannot be browsable (the terminology 
is about to change from ghosting). For example

*	host:/some/dir/&

is not browsable because autofs cannot know what the map keys at startup.

Basically, if the map keys cannot be known in advance they will not be 
seen, at least immediately after startup.
 
Ian


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

* Re: Automount ghost option
       [not found] ` <5arK7-5L9-5@gated-at.bofh.it>
@ 2005-11-21 20:30   ` Olivier Croquette
  2005-11-22 16:57     ` Ian Kent
  0 siblings, 1 reply; 4+ messages in thread
From: Olivier Croquette @ 2005-11-21 20:30 UTC (permalink / raw)
  To: LKML, raven

Ian Kent wrote:
>>Nevertheless, on some recent distributions I have tested on, this option is
>>not available.
> 
> For example?

I tried on SuSE 9.2 and 9.3 and it didn't work.

After a short investigation based on your info, this is what came out:

On SuSE 9.2, it's because it is still using a 3.x autofs.
On SuSE 9.3, it's because it doesn't work with the --ghost option in the 
auto.x NIS map file. It works only if I put the option in the 
/etc/sysconfig/autofs global settings.

Thanks for your help!

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

* Re: Automount ghost option
  2005-11-21 20:30   ` Olivier Croquette
@ 2005-11-22 16:57     ` Ian Kent
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Kent @ 2005-11-22 16:57 UTC (permalink / raw)
  To: ocroquette; +Cc: LKML

On Mon, 21 Nov 2005, Olivier Croquette wrote:

> Ian Kent wrote:
> >>Nevertheless, on some recent distributions I have tested on, this option is
> >>not available.
> > 
> > For example?
> 
> I tried on SuSE 9.2 and 9.3 and it didn't work.
> 
> After a short investigation based on your info, this is what came out:
> 
> On SuSE 9.2, it's because it is still using a 3.x autofs.
> On SuSE 9.3, it's because it doesn't work with the --ghost option in the 
> auto.x NIS map file. It works only if I put the option in the 
> /etc/sysconfig/autofs global settings.

That's a bit of a shame.

There's really not much I can do to help if I'm not asked.

Ian


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

end of thread, other threads:[~2005-11-22  3:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-18 17:28 Automount ghost option Olivier Croquette
2005-11-19  3:35 ` Ian Kent
     [not found] <5ainN-x5-11@gated-at.bofh.it>
     [not found] ` <5arK7-5L9-5@gated-at.bofh.it>
2005-11-21 20:30   ` Olivier Croquette
2005-11-22 16:57     ` Ian Kent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox