Blame SOURCES/autofs-5.1.1-fix-direct-mount-stale-instance-flag-reset.patch

306fa1
autofs-5.1.1 - fix direct mount stale instance flag reset
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
When re-reading a direct map the stale map instance flag was not being
306fa1
reset. This caused the map to be seen as stale on subsequent lookups
306fa1
thereby triggering a map re-read.
306fa1
306fa1
Signed-off-by: Ian Kent <raven@themaw.net>
306fa1
---
306fa1
 CHANGELOG      |    1 +
306fa1
 daemon/state.c |    1 +
306fa1
 2 files changed, 2 insertions(+)
306fa1
306fa1
--- autofs-5.0.7.orig/CHANGELOG
306fa1
+++ autofs-5.0.7/CHANGELOG
306fa1
@@ -178,6 +178,7 @@
306fa1
 - make find_dc_server() return a status.
306fa1
 - make find_server() return a status.
306fa1
 - fix return handling of do_reconnect() in ldap module.
306fa1
+- fix direct mount stale instance flag reset.
306fa1
 
306fa1
 25/07/2012 autofs-5.0.7
306fa1
 =======================
306fa1
--- autofs-5.0.7.orig/daemon/state.c
306fa1
+++ autofs-5.0.7/daemon/state.c
306fa1
@@ -513,6 +513,7 @@ static void *do_readmap(void *arg)
306fa1
 			}
306fa1
 			lookup_prune_one_cache(ap, map->mc, now);
306fa1
 			pthread_cleanup_pop(1);
306fa1
+			clear_stale_instances(map);
306fa1
 			map->stale = 0;
306fa1
 			map = map->next;
306fa1
 		}