On Fri, Apr 20, 2001 at 01:11:53AM -0700, Jim Barbour wrote:
> We need this script to support "nested" direct mounts, such as...
> 
> /usr/local/src/perl            server:/perl
> /usr/local/src/LOCAL/squash    desktop:/squash
> /usr/local/src/LOCAL/admsuite  frogger:/admsuite
> 
> the script may be called to lookup perl (from /usr/local/src), LOCAL
> (from /usr/local/src) or squash (from /usr/local/src/LOCAL.)  So, the
> script needs some context about the key being looked up.
> 
> >From the docs I've read, and from what I've seen in the source, all
> the script knows is what key is being looked up, it does not know in
> what directory the key is being looked up for.
> 
> If you don't want to chdir to the directory, another alternative might
> be to put the directory in an environment variable before exec'ing the
> script.

Oh, so /usr/local/src/ is the automount mountpoint, and the program map
creates a recursive automount for /usr/local/src/LOCAL?  Couldn't you
put something in the environment when starting automount, and have the
script append to the environment when it starts the recursive map (ie,
use a 2nd automount daemon for /usr/local/src/LOCAL rather than playing
with more program maps)?

        J

Reply via email to