From: Jeff Moyer Subject: Re: getting parameters to executable maps Date: Wed, 21 Jun 2006 09:33:04 -0400 Message-ID: References: <000101c68e5a$6f30d570$4d928050$@org> Mime-Version: 1.0 Return-path: In-Reply-To: (Ian Kent's message of "Wed, 21 Jun 2006 11:26:35 +0800 (WST)") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ian Kent Cc: autofs@linux.kernel.org ==> Regarding RE: [autofs] getting parameters to executable maps; Ian Kent 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? -Jeff