All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Kent <raven@themaw.net>
To: Ondrej Valousek <webserv@s3group.cz>
Cc: "autofs@linux.kernel.org" <autofs@linux.kernel.org>
Subject: Re: Automounter to dump maps
Date: Thu, 12 Nov 2009 22:52:28 +0800	[thread overview]
Message-ID: <4AFC212C.4010409@themaw.net> (raw)
In-Reply-To: <4AFC0BEB.3040808@s3group.cz>

Ondrej Valousek wrote:
> 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.

No, there isn't but you don't need to restart autofs to change the log
level. You can do that for the running deamon by:

automount --set-log-priority debug <master map mount point path>

and set it back to no logging (or another lower level) by:

automount --set-log-priority info <master map mount point path>

> 
> 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.

Not sure but we would probably do something similar to the log level
changing method above.

> 
> Is this a completely misplaced idea or is there a way to achieve this
> functionality now?

It's not a bad idea but I wonder how useful it really is since what is
really useful in trying to sort out problems is the debug log output.

> 
> Many thanks,
> Ondrej
> 
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs

  parent reply	other threads:[~2009-11-12 14:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-12 13:21 Automounter to dump maps Ondrej Valousek
2009-11-12 13:43 ` Jeff Moyer
2009-11-12 14:58   ` Ian Kent
2009-11-12 14:52 ` Ian Kent [this message]
2009-11-12 17:08   ` Ondrej Valousek
2009-11-17  7:55     ` Ian Kent
2009-11-18 13:56       ` Ondrej Valousek
2009-11-18 14:12         ` Ian Kent
2009-11-18 14:31           ` Ondrej Valousek
2009-11-18 14:41             ` Ian Kent
2010-01-12  9:18               ` Ondrej Valousek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AFC212C.4010409@themaw.net \
    --to=raven@themaw.net \
    --cc=autofs@linux.kernel.org \
    --cc=webserv@s3group.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.