0001
0002 #ifndef _LINUX_NFS_MOUNT_H
0003 #define _LINUX_NFS_MOUNT_H
0004
0005
0006
0007
0008
0009
0010
0011
0012 #include <linux/in.h>
0013 #include <linux/nfs.h>
0014 #include <linux/nfs2.h>
0015 #include <linux/nfs3.h>
0016
0017
0018
0019
0020
0021
0022
0023
0024 #define NFS_MOUNT_VERSION 6
0025 #define NFS_MAX_CONTEXT_LEN 256
0026
0027 struct nfs_mount_data {
0028 int version;
0029 int fd;
0030 struct nfs2_fh old_root;
0031 int flags;
0032 int rsize;
0033 int wsize;
0034 int timeo;
0035 int retrans;
0036 int acregmin;
0037 int acregmax;
0038 int acdirmin;
0039 int acdirmax;
0040 struct sockaddr_in addr;
0041 char hostname[NFS_MAXNAMLEN + 1];
0042 int namlen;
0043 unsigned int bsize;
0044 struct nfs3_fh root;
0045 int pseudoflavor;
0046 char context[NFS_MAX_CONTEXT_LEN + 1];
0047 };
0048
0049
0050
0051 #define NFS_MOUNT_SOFT 0x0001
0052 #define NFS_MOUNT_INTR 0x0002
0053 #define NFS_MOUNT_SECURE 0x0004
0054 #define NFS_MOUNT_POSIX 0x0008
0055 #define NFS_MOUNT_NOCTO 0x0010
0056 #define NFS_MOUNT_NOAC 0x0020
0057 #define NFS_MOUNT_TCP 0x0040
0058 #define NFS_MOUNT_VER3 0x0080
0059 #define NFS_MOUNT_KERBEROS 0x0100
0060 #define NFS_MOUNT_NONLM 0x0200
0061 #define NFS_MOUNT_BROKEN_SUID 0x0400
0062 #define NFS_MOUNT_NOACL 0x0800
0063 #define NFS_MOUNT_STRICTLOCK 0x1000
0064 #define NFS_MOUNT_SECFLAVOUR 0x2000
0065 #define NFS_MOUNT_NORDIRPLUS 0x4000
0066 #define NFS_MOUNT_UNSHARED 0x8000
0067 #define NFS_MOUNT_FLAGMASK 0xFFFF
0068
0069 #endif