]> git.decadent.org.uk Git - nfs-utils.git/blob - support/include/nfs/export.h
Merge branch 'sid'
[nfs-utils.git] / support / include / nfs / export.h
1 #ifndef _NSF_EXPORT_H
2 #define _NSF_EXPORT_H
3
4 /*
5  * Important limits for the exports stuff.
6  */
7 #define NFSCLNT_IDMAX           1024
8 #define NFSCLNT_ADDRMAX         16
9 #define NFSCLNT_KEYMAX          32
10
11 /*
12  * Export flags.
13  */
14 #define NFSEXP_READONLY         0x0001
15 #define NFSEXP_INSECURE_PORT    0x0002
16 #define NFSEXP_ROOTSQUASH       0x0004
17 #define NFSEXP_ALLSQUASH        0x0008
18 #define NFSEXP_ASYNC            0x0010
19 #define NFSEXP_GATHERED_WRITES  0x0020
20 /* 40, 80, 100 unused */
21 #define NFSEXP_NOHIDE           0x0200
22 #define NFSEXP_NOSUBTREECHECK   0x0400
23 #define NFSEXP_NOAUTHNLM        0x0800
24 #define NFSEXP_FSID             0x2000
25 #define NFSEXP_CROSSMOUNT       0x4000
26 #define NFSEXP_NOACL            0x8000 /* reserved for possible ACL related use */
27 #define NFSEXP_V4ROOT           0x10000
28 /*
29  * All flags supported by the kernel before addition of the
30  * export_features interface:
31  */
32 #define NFSEXP_OLDFLAGS         0x7E3F
33 /*
34  * Flags that can vary per flavor, for kernels before addition of the
35  * export_features interface:
36  */
37 #define NFSEXP_OLD_SECINFO_FLAGS (NFSEXP_READONLY | NFSEXP_ROOTSQUASH \
38                                         | NFSEXP_ALLSQUASH)
39
40 #endif /* _NSF_EXPORT_H */