From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Kent Subject: Re: Automounter to dump maps Date: Thu, 12 Nov 2009 22:58:01 +0800 Message-ID: <4AFC2279.6070009@themaw.net> References: <4AFC0BEB.3040808@s3group.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: 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: Jeff Moyer Cc: "autofs@linux.kernel.org" Jeff Moyer wrote: > Ondrej Valousek writes: > >> Hi Ian / all, >> >> Is there any way to make automounter dump maps it sees? I was just >> thinking about it - with files / NIS / program backend it is not much >> needed but it could be quite helpful with ldap backend - restarting >> automounter with verbose logging is not too practical in the >> production environment. >> >> I would imagine either some small standalone program using autofs >> internals which would dump all (or certain specified) maps or running >> a second instance of autofs (with some parameter) which would not >> mount anything and just dump the maps and exits. >> >> Is this a completely misplaced idea or is there a way to achieve this >> functionality now? > > Well, back in the autofs4 days, when way too much logic was put into the > init script, we basically had to do this. ;-) See the --dumpmap switch > in v4. I can see that it could be a useful aid for administrators to > ensure that their maps look like they think they do, especially with > nsswitch and included maps, and those pesky null maps. Well, there you go. This sounds like a +1 in favour to me. Ian