summaryrefslogtreecommitdiff
path: root/include/linux/nfs_idmap.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@fys.uio.no>2004-02-07 16:29:20 +0100
committerTrond Myklebust <trond.myklebust@fys.uio.no>2004-02-07 16:29:20 +0100
commitb26ef9fe3e350db44fa93605316de62b742fc13b (patch)
treebedd452adadfcff8435aea1f4b55c2c45504ebe8 /include/linux/nfs_idmap.h
parent066a0e3dcd5fe5c00063a9ba23ad0c33a90ddec0 (diff)
NFSv4: Bugfixes and cleanups for the NFSv4 client
name to uid mapper. Includes a fix by Tim Woods to deal with a caching bug in the case where a user and a group share the same numerical id and/or name.
Diffstat (limited to 'include/linux/nfs_idmap.h')
-rw-r--r--include/linux/nfs_idmap.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/include/linux/nfs_idmap.h b/include/linux/nfs_idmap.h
index 248adf707071..c95076e5941b 100644
--- a/include/linux/nfs_idmap.h
+++ b/include/linux/nfs_idmap.h
@@ -52,18 +52,21 @@
#define IDMAP_STATUS_SUCCESS 0x08
struct idmap_msg {
- u_int8_t im_type;
- u_int8_t im_conv;
- char im_name[IDMAP_NAMESZ];
- u_int32_t im_id;
- u_int8_t im_status;
+ __u8 im_type;
+ __u8 im_conv;
+ char im_name[IDMAP_NAMESZ];
+ __u32 im_id;
+ __u8 im_status;
};
#ifdef __KERNEL__
void *nfs_idmap_new(struct nfs_server *);
void nfs_idmap_delete(struct nfs_server *);
-int nfs_idmap_id(struct nfs_server *, u_int8_t, char *, u_int, uid_t *);
-int nfs_idmap_name(struct nfs_server *, u_int8_t, uid_t, char *, u_int *);
+
+int nfs_map_name_to_uid(struct nfs_server *, const char *, size_t, __u32 *);
+int nfs_map_group_to_gid(struct nfs_server *, const char *, size_t, __u32 *);
+int nfs_map_uid_to_name(struct nfs_server *, __u32, char *);
+int nfs_map_gid_to_group(struct nfs_server *, __u32, char *);
#endif /* __KERNEL__ */
#endif /* NFS_IDMAP_H */