2005-11-18 17:32:26

by Olivier Croquette

[permalink] [raw]
Subject: Automount ghost option


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



2005-11-19 03:35:27

by Ian Kent

[permalink] [raw]
Subject: Re: Automount ghost option

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

2005-11-21 20:34:12

by Olivier Croquette

[permalink] [raw]
Subject: Re: Automount ghost option

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!

2005-11-22 03:56:49

by Ian Kent

[permalink] [raw]
Subject: Re: Automount ghost option

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