nfs4_mount.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #ifndef _LINUX_NFS4_MOUNT_H
  2. #define _LINUX_NFS4_MOUNT_H
  3. /*
  4. * linux/include/linux/nfs4_mount.h
  5. *
  6. * Copyright (C) 2002 Trond Myklebust
  7. *
  8. * structure passed from user-space to kernel-space during an nfsv4 mount
  9. */
  10. /*
  11. * WARNING! Do not delete or change the order of these fields. If
  12. * a new field is required then add it to the end. The version field
  13. * tracks which fields are present. This will ensure some measure of
  14. * mount-to-kernel version compatibility. Some of these aren't used yet
  15. * but here they are anyway.
  16. */
  17. #define NFS4_MOUNT_VERSION 1
  18. struct nfs_string {
  19. unsigned int len;
  20. const char __user * data;
  21. };
  22. struct nfs4_mount_data {
  23. int version; /* 1 */
  24. int flags; /* 1 */
  25. int rsize; /* 1 */
  26. int wsize; /* 1 */
  27. int timeo; /* 1 */
  28. int retrans; /* 1 */
  29. int acregmin; /* 1 */
  30. int acregmax; /* 1 */
  31. int acdirmin; /* 1 */
  32. int acdirmax; /* 1 */
  33. /* see the definition of 'struct clientaddr4' in RFC3010 */
  34. struct nfs_string client_addr; /* 1 */
  35. /* Mount path */
  36. struct nfs_string mnt_path; /* 1 */
  37. /* Server details */
  38. struct nfs_string hostname; /* 1 */
  39. /* Server IP address */
  40. unsigned int host_addrlen; /* 1 */
  41. struct sockaddr __user * host_addr; /* 1 */
  42. /* Transport protocol to use */
  43. int proto; /* 1 */
  44. /* Pseudo-flavours to use for authentication. See RFC2623 */
  45. int auth_flavourlen; /* 1 */
  46. int __user *auth_flavours; /* 1 */
  47. };
  48. /* bits in the flags field */
  49. /* Note: the fields that correspond to existing NFSv2/v3 mount options
  50. * should mirror the values from include/linux/nfs_mount.h
  51. */
  52. #define NFS4_MOUNT_SOFT 0x0001 /* 1 */
  53. #define NFS4_MOUNT_INTR 0x0002 /* 1 */
  54. #define NFS4_MOUNT_NOCTO 0x0010 /* 1 */
  55. #define NFS4_MOUNT_NOAC 0x0020 /* 1 */
  56. #define NFS4_MOUNT_STRICTLOCK 0x1000 /* 1 */
  57. #define NFS4_MOUNT_UNSHARED 0x8000 /* 1 */
  58. #define NFS4_MOUNT_FLAGMASK 0x9033
  59. #endif