]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r320359:
authortrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 1 Aug 2017 15:51:16 +0000 (15:51 +0000)
committertrasz <trasz@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 1 Aug 2017 15:51:16 +0000 (15:51 +0000)
commitc72b43e6e02558f922507307bc2d3ef66d0091c8
tree1a846ae620f1da9f492553e9af82fffc2b29e771
parenta81b02ade02fe75440f8ae8c2086257bd0bdc4b8
MFC r320359:

Add vfs.nfsd.nfsd_enable_uidtostring, which works just like
vfs.nfsd.nfsd_enable_stringtouid, but in reverse - when set to 1,
it forces the NFSv4 server to return numeric UIDs and GIDs instead
of "user@domain" strings. This helps with clients that can't
translate returned identifiers, eg when rerooting.

The same can be achieved by just never running nfsuserd(8),
but the sysctl is useful to toggle the behaviour back and forth
without rebooting.

MFC r320409:

Revert part of r320359, as suggested by rmacklem@.  That case is only used
for nfsuserd -manage-gids and shouldn't depend on sysctl.

MFC r321196:

Rename vfs.nfsd.enable_uidtostring to vfs.nfs.enable_uidtostring.
It applies to both NFS client and NFS server, and is useful for both.
This is different from vfs.nfsd.enable_stringtouid, which is specific
to server side.

Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@321877 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfs/nfs_commonsubs.c