summaryrefslogtreecommitdiffstats
path: root/src/responder/autofs/autofs_private.h
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-12-15 13:23:09 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-12-18 17:25:34 +0100
commit08c72b84d85d482f030a30cf74786695f097e91c (patch)
treeb86b9e4f70d31859377ab267d23cf088387b6ef3 /src/responder/autofs/autofs_private.h
parent06cb67c391dd8c2b1542a7d87fb5568fdad448cb (diff)
downloadsssd-08c72b84d85d482f030a30cf74786695f097e91c.tar.gz
sssd-08c72b84d85d482f030a30cf74786695f097e91c.tar.xz
sssd-08c72b84d85d482f030a30cf74786695f097e91c.zip
AUTOFS: allow removing entries from hash table
There is a timed desctructor in the autofs responder that, when the entry timeout passes, removes the autofs map from the hash table while the map is freed. This patch adds a hash delete callback so that if the map is removed from the hash table with hash_delete, its hash table pointer will be invalidated. Later, when the entry is being freed, the destructor won't attempt to remove it from the hash table.
Diffstat (limited to 'src/responder/autofs/autofs_private.h')
-rw-r--r--src/responder/autofs/autofs_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/responder/autofs/autofs_private.h b/src/responder/autofs/autofs_private.h
index bb0c61896..a2af36e40 100644
--- a/src/responder/autofs/autofs_private.h
+++ b/src/responder/autofs/autofs_private.h
@@ -76,6 +76,9 @@ struct autofs_map_ctx {
struct sss_cmd_table *get_autofs_cmds(void);
+void autofs_map_hash_delete_cb(hash_entry_t *item,
+ hash_destroy_enum deltype, void *pvt);
+
enum sss_dp_autofs_type {
SSS_DP_AUTOFS
};