diff options
author | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2012-10-13 05:46:48 -0400 |
commit | 607ca46e97a1b6594b29647d98a32d545c24bdff (patch) | |
tree | 30f4c0784bfddb57332cdc0678bd06d1e77fa185 /include/linux/nfs_idmap.h | |
parent | 08cce05c5a91f5017f4edc9866cf026908c73f9f (diff) |
UAPI: (Scripted) Disintegrate include/linux
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Michael Kerrisk <mtk.manpages@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Acked-by: Dave Jones <davej@redhat.com>
Diffstat (limited to 'include/linux/nfs_idmap.h')
-rw-r--r-- | include/linux/nfs_idmap.h | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/include/linux/nfs_idmap.h b/include/linux/nfs_idmap.h index ece91c57ad79..2dcef3ab58b6 100644 --- a/include/linux/nfs_idmap.h +++ b/include/linux/nfs_idmap.h | |||
@@ -33,35 +33,11 @@ | |||
33 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | 33 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
34 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 34 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
35 | */ | 35 | */ |
36 | |||
37 | #ifndef NFS_IDMAP_H | 36 | #ifndef NFS_IDMAP_H |
38 | #define NFS_IDMAP_H | 37 | #define NFS_IDMAP_H |
39 | 38 | ||
40 | #include <linux/types.h> | 39 | #include <uapi/linux/nfs_idmap.h> |
41 | |||
42 | /* XXX from bits/utmp.h */ | ||
43 | #define IDMAP_NAMESZ 128 | ||
44 | |||
45 | #define IDMAP_TYPE_USER 0 | ||
46 | #define IDMAP_TYPE_GROUP 1 | ||
47 | |||
48 | #define IDMAP_CONV_IDTONAME 0 | ||
49 | #define IDMAP_CONV_NAMETOID 1 | ||
50 | 40 | ||
51 | #define IDMAP_STATUS_INVALIDMSG 0x01 | ||
52 | #define IDMAP_STATUS_AGAIN 0x02 | ||
53 | #define IDMAP_STATUS_LOOKUPFAIL 0x04 | ||
54 | #define IDMAP_STATUS_SUCCESS 0x08 | ||
55 | |||
56 | struct idmap_msg { | ||
57 | __u8 im_type; | ||
58 | __u8 im_conv; | ||
59 | char im_name[IDMAP_NAMESZ]; | ||
60 | __u32 im_id; | ||
61 | __u8 im_status; | ||
62 | }; | ||
63 | |||
64 | #ifdef __KERNEL__ | ||
65 | 41 | ||
66 | /* Forward declaration to make this header independent of others */ | 42 | /* Forward declaration to make this header independent of others */ |
67 | struct nfs_client; | 43 | struct nfs_client; |
@@ -97,6 +73,4 @@ int nfs_map_uid_to_name(const struct nfs_server *, __u32, char *, size_t); | |||
97 | int nfs_map_gid_to_group(const struct nfs_server *, __u32, char *, size_t); | 73 | int nfs_map_gid_to_group(const struct nfs_server *, __u32, char *, size_t); |
98 | 74 | ||
99 | extern unsigned int nfs_idmap_cache_timeout; | 75 | extern unsigned int nfs_idmap_cache_timeout; |
100 | #endif /* __KERNEL__ */ | ||
101 | |||
102 | #endif /* NFS_IDMAP_H */ | 76 | #endif /* NFS_IDMAP_H */ |