June 2025 | ||||||
Mo | Tu | We | Th | Fr | Sa | Su |
26 | 27 | 28 | 29 | 30 | 31 | 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 1 | 2 | 3 | 4 | 5 | 6 |
01: /* 02: * include/linux/nfsd/export.h 03: * 04: * Public declarations for NFS exports. The definitions for the 05: * syscall interface are in nfsctl.h 06: * 07: * Copyright (C) 1995-1997 Olaf Kirch <okir@monad.swb.de> 08: */ 09: 10: #ifndef NFSD_EXPORT_H 11: #define NFSD_EXPORT_H 12: 13: # include <linux/types.h> 14: 15: /* 16: * Important limits for the exports stuff. 17: */ 18: #define NFSCLNT_IDMAX 1024 19: #define NFSCLNT_ADDRMAX 16 20: #define NFSCLNT_KEYMAX 32 21: 22: /* 23: * Export flags. 24: */ 25: #define NFSEXP_READONLY 0x0001 26: #define NFSEXP_INSECURE_PORT 0x0002 27: #define NFSEXP_ROOTSQUASH 0x0004 28: #define NFSEXP_ALLSQUASH 0x0008 29: #define NFSEXP_ASYNC 0x0010 30: #define NFSEXP_GATHERED_WRITES 0x0020 31: /* 40 80 100 currently unused */ 32: #define NFSEXP_NOHIDE 0x0200 33: #define NFSEXP_NOSUBTREECHECK 0x0400 34: #define NFSEXP_NOAUTHNLM 0x0800 /* Don't authenticate NLM requests - just trust */ 35: #define NFSEXP_MSNFS 0x1000 /* do silly things that MS clients expect; no longer supported */ 36: #define NFSEXP_FSID 0x2000 37: #define NFSEXP_CROSSMOUNT 0x4000 38: #define NFSEXP_NOACL 0x8000 /* reserved for possible ACL related use */ 39: /* 40: * The NFSEXP_V4ROOT flag causes the kernel to give access only to NFSv4 41: * clients, and only to the single directory that is the root of the 42: * export; further lookup and readdir operations are treated as if every 43: * subdirectory was a mountpoint, and ignored if they are not themselves 44: * exported. This is used by nfsd and mountd to construct the NFSv4 45: * pseudofilesystem, which provides access only to paths leading to each 46: * exported filesystem. 47: */ 48: #define NFSEXP_V4ROOT 0x10000 49: /* All flags that we claim to support. (Note we don't support NOACL.) */ 50: #define NFSEXP_ALLFLAGS 0x17E3F 51: 52: /* The flags that may vary depending on security flavor: */ 53: #define NFSEXP_SECINFO_FLAGS (NFSEXP_READONLY | NFSEXP_ROOTSQUASH \ 54: | NFSEXP_ALLSQUASH \ 55: | NFSEXP_INSECURE_PORT) 56: 57: 58: #endif /* NFSD_EXPORT_H */ 59: 60: