diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-15 13:23:09 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-12-18 20:03:27 +0100 |
commit | 460ccce18abc25db8ebe230111b1e5303999b8d3 (patch) | |
tree | 04d5d5aebc155a8257ca5786f88040495b1efcd4 /src/responder/autofs/autofs_private.h | |
parent | cf308d76dbd0ed95f00ed1e998b3f1d52f7f8e6b (diff) | |
download | sssd-460ccce18abc25db8ebe230111b1e5303999b8d3.tar.gz sssd-460ccce18abc25db8ebe230111b1e5303999b8d3.tar.xz sssd-460ccce18abc25db8ebe230111b1e5303999b8d3.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.h | 3 |
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 }; |