|
|
9a499a |
autofs-5.1.7 - pass mapent_cache to update_offset_entry()
|
|
|
9a499a |
|
|
|
9a499a |
From: Ian Kent <raven@themaw.net>
|
|
|
9a499a |
|
|
|
9a499a |
Pass mapent_cache to update_offset_entry() rather than use the wait/signal
|
|
|
9a499a |
mechanism, it isn't needed here.
|
|
|
9a499a |
|
|
|
9a499a |
Signed-off-by: Ian Kent <raven@themaw.net>
|
|
|
9a499a |
---
|
|
|
9a499a |
CHANGELOG | 1 +
|
|
|
9a499a |
modules/parse_sun.c | 22 ++++++----------------
|
|
|
9a499a |
2 files changed, 7 insertions(+), 16 deletions(-)
|
|
|
9a499a |
|
|
|
9a499a |
--- autofs-5.1.4.orig/CHANGELOG
|
|
|
9a499a |
+++ autofs-5.1.4/CHANGELOG
|
|
|
9a499a |
@@ -16,6 +16,7 @@
|
|
|
9a499a |
- fix mnts_get_expire_list() expire list construction.
|
|
|
9a499a |
- fix inconsistent locking in umount_subtree_mounts().
|
|
|
9a499a |
- fix return from umount_subtree_mounts() on offset list delete.
|
|
|
9a499a |
+- pass mapent_cache to update_offset_entry().
|
|
|
9a499a |
|
|
|
9a499a |
xx/xx/2018 autofs-5.1.5
|
|
|
9a499a |
- fix flag file permission.
|
|
|
9a499a |
--- autofs-5.1.4.orig/modules/parse_sun.c
|
|
|
9a499a |
+++ autofs-5.1.4/modules/parse_sun.c
|
|
|
9a499a |
@@ -795,24 +795,17 @@ static int check_is_multi(const char *ma
|
|
|
9a499a |
}
|
|
|
9a499a |
|
|
|
9a499a |
static int
|
|
|
9a499a |
-update_offset_entry(struct autofs_point *ap, const char *name,
|
|
|
9a499a |
+update_offset_entry(struct autofs_point *ap,
|
|
|
9a499a |
+ struct mapent_cache *mc, const char *name,
|
|
|
9a499a |
const char *m_root, int m_root_len,
|
|
|
9a499a |
- const char *path, const char *myoptions, const char *loc,
|
|
|
9a499a |
- time_t age)
|
|
|
9a499a |
+ const char *path, const char *myoptions,
|
|
|
9a499a |
+ const char *loc, time_t age)
|
|
|
9a499a |
{
|
|
|
9a499a |
- struct map_source *source;
|
|
|
9a499a |
- struct mapent_cache *mc;
|
|
|
9a499a |
char m_key[PATH_MAX + 1];
|
|
|
9a499a |
char m_mapent[MAPENT_MAX_LEN + 1];
|
|
|
9a499a |
int p_len, m_key_len, m_options_len, m_mapent_len;
|
|
|
9a499a |
int ret;
|
|
|
9a499a |
|
|
|
9a499a |
- source = ap->entry->current;
|
|
|
9a499a |
- ap->entry->current = NULL;
|
|
|
9a499a |
- master_source_current_signal(ap->entry);
|
|
|
9a499a |
-
|
|
|
9a499a |
- mc = source->mc;
|
|
|
9a499a |
-
|
|
|
9a499a |
memset(m_mapent, 0, MAPENT_MAX_LEN + 1);
|
|
|
9a499a |
|
|
|
9a499a |
/* Internal hosts map may have loc == NULL */
|
|
|
9a499a |
@@ -1576,11 +1569,8 @@ dont_expand:
|
|
|
9a499a |
p += l;
|
|
|
9a499a |
p = skipspace(p);
|
|
|
9a499a |
|
|
|
9a499a |
- master_source_current_wait(ap->entry);
|
|
|
9a499a |
- ap->entry->current = source;
|
|
|
9a499a |
-
|
|
|
9a499a |
- status = update_offset_entry(ap, name,
|
|
|
9a499a |
- m_root, m_root_len,
|
|
|
9a499a |
+ status = update_offset_entry(ap, mc,
|
|
|
9a499a |
+ name, m_root, m_root_len,
|
|
|
9a499a |
path, myoptions, loc, age);
|
|
|
9a499a |
|
|
|
9a499a |
if (status != CHE_OK) {
|