From: Jeff Moyer Subject: Re: Map a single file?? Date: Thu, 07 May 2009 16:16:24 -0400 Message-ID: References: <49FCDEA9.2040804@bononline.nl> <49FD0E9B.7070505@themaw.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49FD0E9B.7070505@themaw.net> (Ian Kent's message of "Sun, 03 May 2009 11:25:15 +0800") 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 To: Ian Kent Cc: autofs@linux.kernel.org Ian Kent writes: > Stef Bon wrote: >> Hello, >> >> I would like to know is it possible for the automounter to map a single >> file? >> In KDE, the filemanagers Dolphin and Konqueror look for the file >> .directory in every >> directory. In some cases I want to present a special .directory file. >> The automounter is presenting a >> tree which consist of networks, workgroups, servers and shares. For the >> network for example, the windows network folder icon would be something >> like an windows icon. This can be set in the .directory file. Futher I >> want these directories presented as icons, not in list. >> >> So, can the automounter map single files, besides directories mapped to >> networkmountpoints? > > That's not functionality that belongs in the autofs. > > This amounts to being able to "mount a single file" and AFAIK Linux > doesn't have this functionality at all and OSs that do have this only > for files that have specific support for particular files, such as > /etc/mnttab in Solaris. Actually, you *can* bind mount a single file. However, the automount daemon does not support this construct as we mkdir the path and mount on top of that. Cheers, Jeff