==> Regarding Re: [autofs] getting parameters to executable maps; Ian Kent <[EMAIL PROTECTED]> adds:
raven> On Wed, 2006-06-21 at 09:33 -0400, Jeff Moyer wrote: >> ==> Regarding RE: [autofs] getting parameters to executable maps; Ian >> Kent <[EMAIL PROTECTED]> adds: >> raven> On Mon, 12 Jun 2006, aptosca wrote: >> >> I have a network service that defines a filesystem namespace. I'd >> like >> to write an executable map that uses that service to return map >> entries >> to automount. Abstractly, the executable map takes the >> namespace path, >> queries the web service, and returns a map entry to >> automount. The map >> entry is either a pointer to a real filesystem or >> an -fstype=autofs >> entry that causes the executable map to be executed >> again when/if an >> entry in the directory is touched. >> raven> I've thought about this and I can't think of any easy way to achieve raven> this. >> raven> I don't like the idea of changing the internals of the way program raven> maps are called. >> raven> One way to do this would be to write an autofs lookup module to raven> handle this map source rather than use a program map. >> Is there any way we could achieve this via setting some environment >> variables? raven> I've been thinking about that but I'm not sure about it. Mainly raven> because the information flow is from autofs to the program and raven> autofs can't know what environment to set. raven> Are you perhaps suggesting we define one or so? Yeah, could be part of the API, if you will. If we do that, then it wouldn't require changing existing program maps, either. It's just a thought. I'd like to hear from the reporter (aptosca, no name specified, who are you?) if it would help in his/her situation. -Jeff _______________________________________________ autofs mailing list [email protected] http://linux.kernel.org/mailman/listinfo/autofs
