From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: making the mountpoints visible all the time Date: Sun, 16 Nov 2003 10:09:42 -0800 Sender: autofs-bounces@linux.kernel.org Message-ID: <3FB7BD66.3010502@zytor.com> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: autofs-bounces@linux.kernel.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Ian Kent Cc: autofs@linux.kernel.org, "Taylor, ForrestX" , "Ruslan U. Zakirov" Ian Kent wrote: > > But how do you know what the keys are? > > In order to make mount points visible you need to know what they are. The > definition of a program map is that it produces map entries as output > given an input key. > You need a new operation on a map -- enumerate. Most, but not all map types support it. In the case of a program map I would suggest implementing enumeration by passing no argument and expecting the enumerated list back. -hpa