export.h 1.8 KB

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