1
autofs-5.0.5 - reset negative status on cache prune
3
From: Ian Kent <raven@themaw.net>
5
When we prune the cache we should reset time of last fail for valid map
6
entries so that, on a HUP signal, we force an entry update on next mount
11
daemon/lookup.c | 5 +++++
12
2 files changed, 6 insertions(+), 0 deletions(-)
15
diff --git a/CHANGELOG b/CHANGELOG
16
index 8b12bbe..d7d8512 100644
20
- fix out of order locking in readmap.
21
- include ip address in debug logging.
22
- mount using address for DNS round robin host names.
23
+- reset negative status on cache prune.
25
03/09/2009 autofs-5.0.5
26
-----------------------
27
diff --git a/daemon/lookup.c b/daemon/lookup.c
28
index 0f7051b..958d8cc 100644
31
@@ -1034,6 +1034,11 @@ void lookup_prune_one_cache(struct autofs_point *ap, struct mapent_cache *mc, ti
32
char *key = NULL, *next_key = NULL;
36
+ * Reset time of last fail for valid map entries to
37
+ * force entry update and subsequent mount retry.
40
me = cache_enumerate(mc, me);