On Tue, 23 Feb 1999, H. Peter Anvin wrote:
>
> What I might try to do, is when parsing auto.master to replace all
> direct mounts with a link into /.a or something, and make /.a an
> indirect mount.
>
Hi - I probably missed the point - but are you implying that you could put
a hook into autofs that would create this scenario when it encounters a
direct key - ie: if you auto.master has a /- auto.direct-or-something
you can have the clients automatically create the /.direct-hack ->
/usr/direct-or-something ?
I think that would be brilliant. It would fake the direct map
automatically without having to modify the client by hand or include a
specific site start up/install script for this type of thing.
Since the /- convention is already there would it be easy enough to then
create the symlink to direct mount fake for the client side?
let's see - the auto.direct file, for example, might say something like:
/usr/dist server1:/export/dist
/tools server2:/export/tools
and the action would be something like:
symlinks=
/usr/dist -> /.direct-usr-dist
/tools -> /.direct-tools
mountpoints=
server1:/export/dist /.dir-usr-dist
server2:/export/tools /.dir-tools
Suppose you could end up with quite a few funny mount points. But it seems
to me like a reasonable and automatic work around, if this is what you had
in mind.
I don't intend to keep pushing the point, you've made yourself quite clear
on this issue - I just wanted to clarify if this is what you were telling
me.
cheers!