aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIan Kent <raven@themaw.net>2017-08-21 08:09:49 +0800
committerIan Kent <raven@themaw.net>2017-10-16 13:57:28 +0800
commit3823e051ecd31c06fdb1c4390860178a32898b2b (patch)
tree819f80c4ec15971d691769d01b230627bd484e90 /include
parentb66deff4241ddc6de6bc67bc42bc2d47a5e35229 (diff)
downloadautofs-3823e051ecd31c06fdb1c4390860178a32898b2b.tar.gz
autofs-5.1.3 - check map instances for staleness on map update
When there are multiple map source instances bypassing the cache update when any one of the map sources returns NSS_STATUS_UNAVAIL is too strong. When the map is marked not stale also check the instances before skipping the cache update. Signed-off-by: Ian Kent <raven@themaw.net>
Diffstat (limited to 'include')
-rw-r--r--include/master.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/master.h b/include/master.h
index 087ddbe6..e1d272fb 100644
--- a/include/master.h
+++ b/include/master.h
@@ -97,6 +97,7 @@ struct map_source *
master_find_source_instance(struct map_source *, const char *, const char *, int, const char **);
struct map_source *
master_add_source_instance(struct map_source *, const char *, const char *, time_t, int, const char **);
+int check_stale_instances(struct map_source *);
void clear_stale_instances(struct map_source *);
void send_map_update_request(struct autofs_point *);
void master_source_writelock(struct master_mapent *);