1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _LINUX_NFS_MOUNT_H 7 #define _LINUX_NFS_MOUNT_H 8 #include <linux/in.h> 9 #include <linux/nfs.h> 10 #include <linux/nfs2.h> 11 #include <linux/nfs3.h> 12 #define NFS_MOUNT_VERSION 6 13 #define NFS_MAX_CONTEXT_LEN 256 14 struct nfs_mount_data { 15 int version; 16 int fd; 17 struct nfs2_fh old_root; 18 int flags; 19 int rsize; 20 int wsize; 21 int timeo; 22 int retrans; 23 int acregmin; 24 int acregmax; 25 int acdirmin; 26 int acdirmax; 27 struct sockaddr_in addr; 28 char hostname[NFS_MAXNAMLEN + 1]; 29 int namlen; 30 unsigned int bsize; 31 struct nfs3_fh root; 32 int pseudoflavor; 33 char context[NFS_MAX_CONTEXT_LEN + 1]; 34 }; 35 #define NFS_MOUNT_SOFT 0x0001 36 #define NFS_MOUNT_INTR 0x0002 37 #define NFS_MOUNT_SECURE 0x0004 38 #define NFS_MOUNT_POSIX 0x0008 39 #define NFS_MOUNT_NOCTO 0x0010 40 #define NFS_MOUNT_NOAC 0x0020 41 #define NFS_MOUNT_TCP 0x0040 42 #define NFS_MOUNT_VER3 0x0080 43 #define NFS_MOUNT_KERBEROS 0x0100 44 #define NFS_MOUNT_NONLM 0x0200 45 #define NFS_MOUNT_BROKEN_SUID 0x0400 46 #define NFS_MOUNT_NOACL 0x0800 47 #define NFS_MOUNT_STRICTLOCK 0x1000 48 #define NFS_MOUNT_SECFLAVOUR 0x2000 49 #define NFS_MOUNT_NORDIRPLUS 0x4000 50 #define NFS_MOUNT_UNSHARED 0x8000 51 #define NFS_MOUNT_FLAGMASK 0xFFFF 52 #define NFS_MOUNT_LOOKUP_CACHE_NONEG 0x10000 53 #define NFS_MOUNT_LOOKUP_CACHE_NONE 0x20000 54 #define NFS_MOUNT_NORESVPORT 0x40000 55 #define NFS_MOUNT_LEGACY_INTERFACE 0x80000 56 #define NFS_MOUNT_LOCAL_FLOCK 0x100000 57 #define NFS_MOUNT_LOCAL_FCNTL 0x200000 58 #endif 59