nfs41-server.txt 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. NFSv4.1 Server Implementation
  2. Server support for minorversion 1 can be controlled using the
  3. /proc/fs/nfsd/versions control file. The string output returned
  4. by reading this file will contain either "+4.1" or "-4.1"
  5. correspondingly.
  6. Currently, server support for minorversion 1 is disabled by default.
  7. It can be enabled at run time by writing the string "+4.1" to
  8. the /proc/fs/nfsd/versions control file. Note that to write this
  9. control file, the nfsd service must be taken down. Use your user-mode
  10. nfs-utils to set this up; see rpc.nfsd(8)
  11. The NFSv4 minorversion 1 (NFSv4.1) implementation in nfsd is based
  12. on the latest NFSv4.1 Internet Draft:
  13. http://tools.ietf.org/html/draft-ietf-nfsv4-minorversion1-29
  14. From the many new features in NFSv4.1 the current implementation
  15. focuses on the mandatory-to-implement NFSv4.1 Sessions, providing
  16. "exactly once" semantics and better control and throttling of the
  17. resources allocated for each client.
  18. Other NFSv4.1 features, Parallel NFS operations in particular,
  19. are still under development out of tree.
  20. See http://wiki.linux-nfs.org/wiki/index.php/PNFS_prototype_design
  21. for more information.
  22. The table below, taken from the NFSv4.1 document, lists
  23. the operations that are mandatory to implement (REQ), optional
  24. (OPT), and NFSv4.0 operations that are required not to implement (MNI)
  25. in minor version 1. The first column indicates the operations that
  26. are not supported yet by the linux server implementation.
  27. The OPTIONAL features identified and their abbreviations are as follows:
  28. pNFS Parallel NFS
  29. FDELG File Delegations
  30. DDELG Directory Delegations
  31. The following abbreviations indicate the linux server implementation status.
  32. I Implemented NFSv4.1 operations.
  33. NS Not Supported.
  34. NS* unimplemented optional feature.
  35. P pNFS features implemented out of tree.
  36. PNS pNFS features that are not supported yet (out of tree).
  37. Operations
  38. +----------------------+------------+--------------+----------------+
  39. | Operation | REQ, REC, | Feature | Definition |
  40. | | OPT, or | (REQ, REC, | |
  41. | | MNI | or OPT) | |
  42. +----------------------+------------+--------------+----------------+
  43. | ACCESS | REQ | | Section 18.1 |
  44. NS | BACKCHANNEL_CTL | REQ | | Section 18.33 |
  45. NS | BIND_CONN_TO_SESSION | REQ | | Section 18.34 |
  46. | CLOSE | REQ | | Section 18.2 |
  47. | COMMIT | REQ | | Section 18.3 |
  48. | CREATE | REQ | | Section 18.4 |
  49. I | CREATE_SESSION | REQ | | Section 18.36 |
  50. NS*| DELEGPURGE | OPT | FDELG (REQ) | Section 18.5 |
  51. | DELEGRETURN | OPT | FDELG, | Section 18.6 |
  52. | | | DDELG, pNFS | |
  53. | | | (REQ) | |
  54. NS | DESTROY_CLIENTID | REQ | | Section 18.50 |
  55. I | DESTROY_SESSION | REQ | | Section 18.37 |
  56. I | EXCHANGE_ID | REQ | | Section 18.35 |
  57. NS | FREE_STATEID | REQ | | Section 18.38 |
  58. | GETATTR | REQ | | Section 18.7 |
  59. P | GETDEVICEINFO | OPT | pNFS (REQ) | Section 18.40 |
  60. P | GETDEVICELIST | OPT | pNFS (OPT) | Section 18.41 |
  61. | GETFH | REQ | | Section 18.8 |
  62. NS*| GET_DIR_DELEGATION | OPT | DDELG (REQ) | Section 18.39 |
  63. P | LAYOUTCOMMIT | OPT | pNFS (REQ) | Section 18.42 |
  64. P | LAYOUTGET | OPT | pNFS (REQ) | Section 18.43 |
  65. P | LAYOUTRETURN | OPT | pNFS (REQ) | Section 18.44 |
  66. | LINK | OPT | | Section 18.9 |
  67. | LOCK | REQ | | Section 18.10 |
  68. | LOCKT | REQ | | Section 18.11 |
  69. | LOCKU | REQ | | Section 18.12 |
  70. | LOOKUP | REQ | | Section 18.13 |
  71. | LOOKUPP | REQ | | Section 18.14 |
  72. | NVERIFY | REQ | | Section 18.15 |
  73. | OPEN | REQ | | Section 18.16 |
  74. NS*| OPENATTR | OPT | | Section 18.17 |
  75. | OPEN_CONFIRM | MNI | | N/A |
  76. | OPEN_DOWNGRADE | REQ | | Section 18.18 |
  77. | PUTFH | REQ | | Section 18.19 |
  78. | PUTPUBFH | REQ | | Section 18.20 |
  79. | PUTROOTFH | REQ | | Section 18.21 |
  80. | READ | REQ | | Section 18.22 |
  81. | READDIR | REQ | | Section 18.23 |
  82. | READLINK | OPT | | Section 18.24 |
  83. NS | RECLAIM_COMPLETE | REQ | | Section 18.51 |
  84. | RELEASE_LOCKOWNER | MNI | | N/A |
  85. | REMOVE | REQ | | Section 18.25 |
  86. | RENAME | REQ | | Section 18.26 |
  87. | RENEW | MNI | | N/A |
  88. | RESTOREFH | REQ | | Section 18.27 |
  89. | SAVEFH | REQ | | Section 18.28 |
  90. | SECINFO | REQ | | Section 18.29 |
  91. NS | SECINFO_NO_NAME | REC | pNFS files | Section 18.45, |
  92. | | | layout (REQ) | Section 13.12 |
  93. I | SEQUENCE | REQ | | Section 18.46 |
  94. | SETATTR | REQ | | Section 18.30 |
  95. | SETCLIENTID | MNI | | N/A |
  96. | SETCLIENTID_CONFIRM | MNI | | N/A |
  97. NS | SET_SSV | REQ | | Section 18.47 |
  98. NS | TEST_STATEID | REQ | | Section 18.48 |
  99. | VERIFY | REQ | | Section 18.31 |
  100. NS*| WANT_DELEGATION | OPT | FDELG (OPT) | Section 18.49 |
  101. | WRITE | REQ | | Section 18.32 |
  102. Callback Operations
  103. +-------------------------+-----------+-------------+---------------+
  104. | Operation | REQ, REC, | Feature | Definition |
  105. | | OPT, or | (REQ, REC, | |
  106. | | MNI | or OPT) | |
  107. +-------------------------+-----------+-------------+---------------+
  108. | CB_GETATTR | OPT | FDELG (REQ) | Section 20.1 |
  109. P | CB_LAYOUTRECALL | OPT | pNFS (REQ) | Section 20.3 |
  110. NS*| CB_NOTIFY | OPT | DDELG (REQ) | Section 20.4 |
  111. P | CB_NOTIFY_DEVICEID | OPT | pNFS (OPT) | Section 20.12 |
  112. NS*| CB_NOTIFY_LOCK | OPT | | Section 20.11 |
  113. NS*| CB_PUSH_DELEG | OPT | FDELG (OPT) | Section 20.5 |
  114. | CB_RECALL | OPT | FDELG, | Section 20.2 |
  115. | | | DDELG, pNFS | |
  116. | | | (REQ) | |
  117. NS*| CB_RECALL_ANY | OPT | FDELG, | Section 20.6 |
  118. | | | DDELG, pNFS | |
  119. | | | (REQ) | |
  120. NS | CB_RECALL_SLOT | REQ | | Section 20.8 |
  121. NS*| CB_RECALLABLE_OBJ_AVAIL | OPT | DDELG, pNFS | Section 20.7 |
  122. | | | (REQ) | |
  123. I | CB_SEQUENCE | OPT | FDELG, | Section 20.9 |
  124. | | | DDELG, pNFS | |
  125. | | | (REQ) | |
  126. NS*| CB_WANTS_CANCELLED | OPT | FDELG, | Section 20.10 |
  127. | | | DDELG, pNFS | |
  128. | | | (REQ) | |
  129. +-------------------------+-----------+-------------+---------------+
  130. Implementation notes:
  131. EXCHANGE_ID:
  132. * only SP4_NONE state protection supported
  133. * implementation ids are ignored
  134. CREATE_SESSION:
  135. * backchannel attributes are ignored
  136. * backchannel security parameters are ignored
  137. SEQUENCE:
  138. * no support for dynamic slot table renegotiation (optional)
  139. nfsv4.1 COMPOUND rules:
  140. The following cases aren't supported yet:
  141. * Enforcing of NFS4ERR_NOT_ONLY_OP for: BIND_CONN_TO_SESSION, CREATE_SESSION,
  142. DESTROY_CLIENTID, DESTROY_SESSION, EXCHANGE_ID.
  143. * DESTROY_SESSION MUST be the final operation in the COMPOUND request.