From: Stef Bon <stef@bononline.nl>
To: Ian Kent <raven@themaw.net>
Cc: autofs@linux.kernel.org
Subject: Re: make an executable map rerun.
Date: Thu, 26 Mar 2009 09:35:03 +0100 [thread overview]
Message-ID: <49CB3E37.4050604@bononline.nl> (raw)
In-Reply-To: <49CAF2C1.1080401@themaw.net>
Ian Kent wrote:
>>> No,
>>>
>>> after activating the executable map once, the data provided by the
>>> executable map is kept. I've tested this by
>>> letting the executable map write to an logfile, and it's running seldom.
>>>
>>> I can look at the contents of /proc/mounts and here I see the autofs
>>> tree, which is kept. So I do not understand your remark
>>> saying it is consulted every single lookup. Does the option -browse
>>> mather here? I'm using that and because this forces the automounter to
>>> remember the data right?
>>>
>
> It just means that autofs won't delete mount point directories after
> they expire. Actually, this case looks like another problem, in that
> we'll get directories that being retained that are no longer valid. Oh
> well, that's something for another day.
>
I'm checking I understand your reaction. You point at the browse option
which forces autofs to
not delete mount point directories.
> Anyway, if the entry isn't a multi-mount (in which case it must not be
> forgotten until it expires away) then it will be deleted from the cache
> and the program map consulted again if the cache entry is older than the
> negative timeout. Maybe making the negative timeout smaller would do
> what you need, hopefully without causing other issues. The default
> negative timeout is 60 seconds.
>
I will try this, but I'm using executable maps which produce a
multi-mount map.
>
>> OK, I was wrong. Sorry about that (I was confused with the fact that
>> program maps don't support the -browse option, since they can't support
>> map enumeration). I admit I am not up to speed on v5. However, it
>> looks to me like a HUP signal will not cause the service thread for your
>> mount point to restart unless the actual program map changed. This
>> means the cache will still be in tact, as you observed. I suspect we
>> should probably clear the cache for any maptype that does not support
>> enumeration upon receiving a HUP signal. Ian, what do you think?
>>
>
> Not really, due to possible active multi-mounts.
> The multi-mounts entries are the reason we have to wait until the mount
> isn't busy.
>
Ok, checking again here. You mean the case that one of the mountentries,
part of the multi-mount map
is used (is: mounted) makes that the whole map is not refreshed.
Thanks for your reaction,
Stef Bon
next prev parent reply other threads:[~2009-03-26 8:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-25 9:21 make an executable map rerun Stef Bon
2009-03-25 13:07 ` Jeff Moyer
2009-03-25 16:43 ` Stef Bon
2009-03-25 17:25 ` Jeff Moyer
2009-03-25 17:47 ` Stef Bon
2009-03-26 3:13 ` Ian Kent
2009-03-26 8:35 ` Stef Bon [this message]
2009-03-26 10:30 ` Ian Kent
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=49CB3E37.4050604@bononline.nl \
--to=stef@bononline.nl \
--cc=autofs@linux.kernel.org \
--cc=raven@themaw.net \
/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.