[L] Change in ...nfs-ganesha[next]: Idmapper: Introduce negative cache for user entries
by Dipit Grover (GerritHub)
Dipit Grover has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1177645?usp=email )
Change subject: Idmapper: Introduce negative cache for user entries
......................................................................
Idmapper: Introduce negative cache for user entries
This change introduces a negative cache for storing user entries
that failed idmapping. The validity and max-count of such entries
is derived from the DIRECTORY_SERVICES section of the Ganesha
config.
This cache is maintained separately from positive cache, to
allow for independent operation, configuration and maintenance.
Note that we do not store the anonymous uid and gid resolved for
such entries, because these resolved ids for a given entry can
vary across different incoming nfs op-requests. Each request
uses the anonymous uid,gid configured for the respective client's
export that is being accessed.
Change-Id: I4c2e085d33dbf70feb5d38bad5d1014669ec4953
Signed-off-by: Dipit Grover <dipit(a)google.com>
---
M src/doc/man/ganesha-core-config.rst
M src/idmapper/CMakeLists.txt
A src/idmapper/idmapper_negative_cache.c
M src/include/gsh_config.h
M src/include/idmapper.h
M src/support/nfs_read_conf.c
6 files changed, 255 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/45/1177645/1
--
To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1177645?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I4c2e085d33dbf70feb5d38bad5d1014669ec4953
Gerrit-Change-Number: 1177645
Gerrit-PatchSet: 1
Gerrit-Owner: Dipit Grover <dipitgrover(a)gmail.com>