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

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