aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/nfs_idmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/nfs_idmap.h')
-rw-r--r--include/linux/nfs_idmap.h36
1 files changed, 32 insertions, 4 deletions
diff --git a/include/linux/nfs_idmap.h b/include/linux/nfs_idmap.h
index 91a1c24e0cbf..ae7d6a380dae 100644
--- a/include/linux/nfs_idmap.h
+++ b/include/linux/nfs_idmap.h
@@ -65,14 +65,42 @@ struct idmap_msg {
65 65
66/* Forward declaration to make this header independent of others */ 66/* Forward declaration to make this header independent of others */
67struct nfs_client; 67struct nfs_client;
68struct nfs_server;
69
70#ifdef CONFIG_NFS_USE_NEW_IDMAPPER
71
72int nfs_idmap_init(void);
73void nfs_idmap_quit(void);
74
75static inline int nfs_idmap_new(struct nfs_client *clp)
76{
77 return 0;
78}
79
80static inline void nfs_idmap_delete(struct nfs_client *clp)
81{
82}
83
84#else /* CONFIG_NFS_USE_NEW_IDMAPPER not set */
85
86static inline int nfs_idmap_init(void)
87{
88 return 0;
89}
90
91static inline void nfs_idmap_quit(void)
92{
93}
68 94
69int nfs_idmap_new(struct nfs_client *); 95int nfs_idmap_new(struct nfs_client *);
70void nfs_idmap_delete(struct nfs_client *); 96void nfs_idmap_delete(struct nfs_client *);
71 97
72int nfs_map_name_to_uid(struct nfs_client *, const char *, size_t, __u32 *); 98#endif /* CONFIG_NFS_USE_NEW_IDMAPPER */
73int nfs_map_group_to_gid(struct nfs_client *, const char *, size_t, __u32 *); 99
74int nfs_map_uid_to_name(struct nfs_client *, __u32, char *); 100int nfs_map_name_to_uid(const struct nfs_server *, const char *, size_t, __u32 *);
75int nfs_map_gid_to_group(struct nfs_client *, __u32, char *); 101int nfs_map_group_to_gid(const struct nfs_server *, const char *, size_t, __u32 *);
102int nfs_map_uid_to_name(const struct nfs_server *, __u32, char *, size_t);
103int nfs_map_gid_to_group(const struct nfs_server *, __u32, char *, size_t);
76 104
77extern unsigned int nfs_idmap_cache_timeout; 105extern unsigned int nfs_idmap_cache_timeout;
78#endif /* __KERNEL__ */ 106#endif /* __KERNEL__ */