From: Ian Kent <raven@themaw.net>
To: devnull@adc.idt.com
Cc: autofs@linux.kernel.org
Subject: Re: disable direct mounts
Date: Tue, 17 Nov 2009 14:50:11 +0800 [thread overview]
Message-ID: <4B0247A3.1060702@themaw.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0911170004530.26324@bos.adc.idt.com>
devnull@adc.idt.com wrote:
>>> We would like to continue to disable direct mounts. The other option is
>>> to use a different "auto.master" w/o the auto.direct, but we would like
>>> to avoid that.
>>
>> Why do you want to disable direct mounts?
> To solve our /usr/local issue.
>
> Our NIS master is a Solaris box. We have an entry in auto.direct for
> /usr/local that currently points to our Sun Solaris binaries.
> The auto.direct is included in our auto.master
>
> We are considering a move to autofs 5.x as part of our OS upgrade. We
> could create a separate auto.master.lnx that does not have auto.direct
> in it, but we prefer not to do that.
>
> "Solving the /usr/local/ puzzle" as the NIS and NFS book suggests is
> something we can do, I am just not sure if we can do that right away.
>
> So someway to disable auto.direct would be useful for us.
One thing you could do with v5 is to include a map that has a null map
entry for /usr/local.
For example, if you are using file maps on each machine you could do
something like this in auto.master:
/some/mount /etc/some.map
....
+/etc/auto.master.null
/- /etc/auto.map.with.usr.local
...
And /etc/auto.master.null would have"
/usr/local -null
Or just add the null entry to the master map itself but then you need
multiple master map instances for each arch.
Note that plus map inclusion is allowed only in file maps and is
typically used to add local client map customisations when using a
centralized source of map information.
This obviously introduces possible problems with different versions of
autofs, and possibly with different distributions. For example there was
a recent bug in v5 where reading of the master map would stop if the
plus included map didn't exist. I'm not sure how version 4 will behave
with this either. However, I would expect other vendor autofs
implementations to work OK.
Ian
next prev parent reply other threads:[~2009-11-17 6:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-16 17:10 disable direct mounts devnull
2009-11-17 1:20 ` Ian Kent
2009-11-17 5:12 ` devnull
2009-11-17 6:30 ` Ian Kent
2009-11-17 6:50 ` Ian Kent [this message]
2009-11-17 16:43 ` devnull
2009-11-18 1:30 ` Ian Kent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B0247A3.1060702@themaw.net \
--to=raven@themaw.net \
--cc=autofs@linux.kernel.org \
--cc=devnull@adc.idt.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.