freebsd-dev/sys/nfs
Rick Macklem 84be7e0952 Add kernel support to the NFS server for the "-manage-gids"
option that will be added to the nfsuserd daemon in a future
commit. It modifies the cache used by NFSv4 for name<-->id
translation (both username/uid and group/gid) to support this.
When "-manage-gids" is set, the server looks up each uid
for the RPC and uses the list of groups cached in the server
instead of the list of groups provided in the RPC request.
The cached group list is acquired for the cache by the nfsuserd
daemon via getgrouplist(3).
This avoids the 16 groups limit for the list in the RPC request.
Since the cache is now used for every RPC when "-manage-gids"
is enabled, the code also modifies the cache to use a separate
mutex for each hash list instead of a single global mutex.

Suggested by:	jpaetzel
Tested by:	jpaetzel
MFC after:	2 weeks
2015-11-30 21:54:27 +00:00
..
bootp_subr.c Remove the old NFS client and server from head, 2014-12-23 00:47:46 +00:00
krpc_subr.c Avoid closing unallocated socket in case socreate fails. 2015-02-28 20:30:29 +00:00
krpc.h
nfs_common.h Remove the unused nfs_curusec(). 2013-01-17 19:03:24 +00:00
nfs_diskless.c Wait up to 10 seconds for late-initializing network interfaces to arrive. 2015-09-26 13:55:55 +00:00
nfs_fha.c Fix/improve fhe_stats sysctl output. 2014-06-14 12:26:12 +00:00
nfs_fha.h Move most of NFS file handle affinity code out of the heavily congested 2013-12-30 20:23:15 +00:00
nfs_kdtrace.h
nfs_lock.c
nfs_lock.h
nfs_mountcommon.h
nfs_nfssvc.c Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
nfsdiskless.h
nfsproto.h
nfssvc.h Add kernel support to the NFS server for the "-manage-gids" 2015-11-30 21:54:27 +00:00
xdr_subs.h