summaryrefslogtreecommitdiff
path: root/fs/nfsd/idmap.h
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2014-01-08 09:49:01 -0500
committerJ. Bruce Fields <bfields@redhat.com>2014-01-08 12:18:53 -0500
commit3554116d3aae25353713f3d0131d86ae6c1e5674 (patch)
treefaa8c12948e667b34fa3b116f744ef14a034e394 /fs/nfsd/idmap.h
parent87915c6472acbc5d7c809f3c9753808797da51a8 (diff)
nfsd4: simplify xdr encoding of nfsv4 names
We can simplify the idmapping code if it does its own encoding and returns nfs errors. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/idmap.h')
-rw-r--r--fs/nfsd/idmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/idmap.h b/fs/nfsd/idmap.h
index bf95f6b817a4..66e58db01936 100644
--- a/fs/nfsd/idmap.h
+++ b/fs/nfsd/idmap.h
@@ -56,7 +56,7 @@ static inline void nfsd_idmap_shutdown(struct net *net)
__be32 nfsd_map_name_to_uid(struct svc_rqst *, const char *, size_t, kuid_t *);
__be32 nfsd_map_name_to_gid(struct svc_rqst *, const char *, size_t, kgid_t *);
-int nfsd_map_uid_to_name(struct svc_rqst *, kuid_t, char *);
-int nfsd_map_gid_to_name(struct svc_rqst *, kgid_t, char *);
+__be32 nfsd4_encode_user(struct svc_rqst *, kuid_t, __be32 **, int *);
+__be32 nfsd4_encode_group(struct svc_rqst *, kgid_t, __be32 **, int *);
#endif /* LINUX_NFSD_IDMAP_H */