xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/nfs_mount.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef _LINUX_NFS_MOUNT_H
8 #define _LINUX_NFS_MOUNT_H
9 #include <linux/in.h>
10 #include <linux/nfs.h>
11 #include <linux/nfs2.h>
12 #include <linux/nfs3.h>
13 #define NFS_MOUNT_VERSION 6
14 #define NFS_MAX_CONTEXT_LEN 256
15 struct nfs_mount_data {
16   int version;
17   int fd;
18   struct nfs2_fh old_root;
19   int flags;
20   int rsize;
21   int wsize;
22   int timeo;
23   int retrans;
24   int acregmin;
25   int acregmax;
26   int acdirmin;
27   int acdirmax;
28   struct sockaddr_in addr;
29   char hostname[NFS_MAXNAMLEN + 1];
30   int namlen;
31   unsigned int bsize;
32   struct nfs3_fh root;
33   int pseudoflavor;
34   char context[NFS_MAX_CONTEXT_LEN + 1];
35 };
36 #define NFS_MOUNT_SOFT 0x0001
37 #define NFS_MOUNT_INTR 0x0002
38 #define NFS_MOUNT_SECURE 0x0004
39 #define NFS_MOUNT_POSIX 0x0008
40 #define NFS_MOUNT_NOCTO 0x0010
41 #define NFS_MOUNT_NOAC 0x0020
42 #define NFS_MOUNT_TCP 0x0040
43 #define NFS_MOUNT_VER3 0x0080
44 #define NFS_MOUNT_KERBEROS 0x0100
45 #define NFS_MOUNT_NONLM 0x0200
46 #define NFS_MOUNT_BROKEN_SUID 0x0400
47 #define NFS_MOUNT_NOACL 0x0800
48 #define NFS_MOUNT_STRICTLOCK 0x1000
49 #define NFS_MOUNT_SECFLAVOUR 0x2000
50 #define NFS_MOUNT_NORDIRPLUS 0x4000
51 #define NFS_MOUNT_UNSHARED 0x8000
52 #define NFS_MOUNT_FLAGMASK 0xFFFF
53 #endif
54