From 1bcb68cc3069a6bd539289e68a87a0815aa2a1be Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sat, 15 Dec 2012 13:22:34 +0100 Subject: 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. --- src/responder/autofs/autofs_private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/responder/autofs/autofs_private.h') diff --git a/src/responder/autofs/autofs_private.h b/src/responder/autofs/autofs_private.h index a2af36e4..58445f35 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 }; -- cgit