NFS: Fall back on old idmapper if request_key() fails
authorBryan Schumaker <bjschuma@netapp.com>
Thu, 26 Jan 2012 21:54:23 +0000 (16:54 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 6 Feb 2012 23:48:01 +0000 (18:48 -0500)
commite6499c6f4b5f56a16f8b8ef60529c1da28b13aea
tree9212b8d42b0cb24e68c46509e3d924f2b9d30f41
parent2d3fe01c36a9b881fae89c5bdf4085a4d7d53ae1
NFS: Fall back on old idmapper if request_key() fails

This patch removes the CONFIG_NFS_USE_NEW_IDMAPPER compile option.
First, the idmapper will attempt to map the id using /sbin/request-key
and nfsidmap.  If this fails (if /etc/request-key.conf is not configured
properly) then the idmapper will call the legacy code to perform the
mapping.  I left a comment stating where the legacy code begins to make
it easier for somebody to remove in the future.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/Kconfig
fs/nfs/idmap.c
fs/nfs/sysctl.c
include/linux/nfs_idmap.h