1 #ifndef _LINUX_NFS_MOUNT_H
2 #define _LINUX_NFS_MOUNT_H
3
4 /*
5 * linux/include/linux/nfs_mount.h
6 *
7 * Copyright (C) 1992 Rick Sladkey
8 *
9 * structure passed from user-space to kernel-space during an nfs mount
10 */
11
12 /*
13 * WARNING! Do not delete or change the order of these fields. If
14 * a new field is required then add it to the end. The version field
15 * tracks which fields are present. This will ensure some measure of
16 * mount-to-kernel version compatibility. Some of these aren't used yet
17 * but here they are anyway.
18 */
19
20 #define NFS_NFS_PROGRAM 100003 /* nfsd program number */
21 #define NFS_NFS_VERSION 2 /* nfsd version */
22 #define NFS_NFS_PORT 2049 /* portnumber on server for nfsd */
23
24 #define NFS_MOUNT_PROGRAM 100005 /* mountd program number */
25 #define NFS_MOUNT_VERSION 1 /* mountd version */
26 #define NFS_MOUNT_PROC 1 /* mount process id */
27 #define NFS_MOUNT_PORT 627 /* portnumber on server for mountd */
28
29 #define NFS_PMAP_PROGRAM 100000 /* portmap program number */
30 #define NFS_PMAP_VERSION 2 /* portmap version */
31 #define NFS_PMAP_PROC 3 /* portmap getport id */
32 #define NFS_PMAP_PORT 111 /* portnumber on server for portmap */
33
34 struct nfs_mount_data {
35 int version; /* 1 */
36 int fd; /* 1 */
37 struct nfs_fh root; /* 1 */
38 int flags; /* 1 */
39 int rsize; /* 1 */
40 int wsize; /* 1 */
41 int timeo; /* 1 */
42 int retrans; /* 1 */
43 int acregmin; /* 1 */
44 int acregmax; /* 1 */
45 int acdirmin; /* 1 */
46 int acdirmax; /* 1 */
47 struct sockaddr_in addr; /* 1 */
48 char hostname[256]; /* 1 */
49 };
50
51 /* bits in the flags field */
52
53 #define NFS_MOUNT_SOFT 0x0001 /* 1 */
54 #define NFS_MOUNT_INTR 0x0002 /* 1 */
55 #define NFS_MOUNT_SECURE 0x0004 /* 1 */
56 #define NFS_MOUNT_POSIX 0x0008 /* 1 */
57 #define NFS_MOUNT_NOCTO 0x0010 /* 1 */
58 #define NFS_MOUNT_NOAC 0x0020 /* 1 */
59
60 #endif