diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-15 13:22:34 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-18 20:03:27 +0100 |
commit | 301f7c3099fbb5f149eeeaf1010a19ed7db8d003 (patch) | |
tree | b4a3005620bf71c7eed06048b9e6e521dc64629b /src/responder/autofs/autofs_private.h | |
parent | 460ccce18abc25db8ebe230111b1e5303999b8d3 (diff) | |
download | sssd-301f7c3099fbb5f149eeeaf1010a19ed7db8d003.tar.gz sssd-301f7c3099fbb5f149eeeaf1010a19ed7db8d003.tar.xz sssd-301f7c3099fbb5f149eeeaf1010a19ed7db8d003.zip |
AUTOFS: remove all maps from hash if request for auto.master comes in
https://fedorahosted.org/sssd/ticket/1592
When a request for auto.master comes in, we need to remove all the maps
from the lookup hash table. We can't simply delete the maps, because
another request might be processing them, so instead the maps are
removed from the hash table, effectively becoming orphaned. The maps
will get freed when the timed destructor is invoked.
Diffstat (limited to 'src/responder/autofs/autofs_private.h')
-rw-r--r-- | src/responder/autofs/autofs_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/responder/autofs/autofs_private.h b/src/responder/autofs/autofs_private.h index a2af36e40..58445f35b 100644 --- a/src/responder/autofs/autofs_private.h +++ b/src/responder/autofs/autofs_private.h @@ -79,6 +79,8 @@ struct sss_cmd_table *get_autofs_cmds(void); void autofs_map_hash_delete_cb(hash_entry_t *item, hash_destroy_enum deltype, void *pvt); +errno_t autofs_orphan_maps(struct autofs_ctx *actx); + enum sss_dp_autofs_type { SSS_DP_AUTOFS }; |