RPC and NFS more than 16 groups

Brooks Davis brooks at freebsd.org
Tue Apr 27 21:44:51 UTC 2010


On Tue, Apr 27, 2010 at 09:03:36PM +0000, Knowledge Seeker wrote:
> Hi,
> I made the changes in 2 FreeBSD 8.0 stable boxes. One I've configured one as
> a server and the other as the client.
> But the 16 groups limit persists.
> Even when I tried using a GNU/Linux Debian machine as a client with a Kernel
> patched  to work with the number of groups advertised by the server
> (kernel-patch-nfs-ngroups), it does not work.
> 
> 
> The files and lines changed in FreeBSD src were:
> 
> include/rpc/auth_unix.h:#define NGRPS 64
> lib/libc/rpc/PSD.doc/xdr.nts.ms:#define NGRPS 64
> lib/libc/rpc/PSD.doc/xdr.nts.ms:#define NGRPS 64
> sys/rpc/authunix_prot.c:#define NGRPS 64
> sys/rpc/svc_auth_unix.c:#define NGRPS            64
> 
> I wish to do that as a temporary solution, once we intend to do a complete
> migration to OpenAFS soon.
> But now, It's really important to have this working.
> Migrate to NFSv4 first, will be too much work, especially on clients. (Only
> the server is a FreeBSD machine)

Realistically you're going to have to dig through the code and find all
the hidden hard codings of 16.  I don't know of any exisitng patches.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100427/b8751862/attachment.pgp


More information about the freebsd-hackers mailing list