^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) =============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) NFSv4.1 Server Implementation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) =============================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) Server support for minorversion 1 can be controlled using the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) /proc/fs/nfsd/versions control file. The string output returned
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) by reading this file will contain either "+4.1" or "-4.1"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) correspondingly.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) Currently, server support for minorversion 1 is enabled by default.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) It can be disabled at run time by writing the string "-4.1" to
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) the /proc/fs/nfsd/versions control file. Note that to write this
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) control file, the nfsd service must be taken down. You can use rpc.nfsd
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) for this; see rpc.nfsd(8).
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) (Warning: older servers will interpret "+4.1" and "-4.1" as "+4" and
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) "-4", respectively. Therefore, code meant to work on both new and old
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) kernels must turn 4.1 on or off *before* turning support for version 4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) on or off; rpc.nfsd does this correctly.)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) The NFSv4 minorversion 1 (NFSv4.1) implementation in nfsd is based
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) on RFC 5661.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) From the many new features in NFSv4.1 the current implementation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) focuses on the mandatory-to-implement NFSv4.1 Sessions, providing
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) "exactly once" semantics and better control and throttling of the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) resources allocated for each client.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) The table below, taken from the NFSv4.1 document, lists
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) the operations that are mandatory to implement (REQ), optional
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) (OPT), and NFSv4.0 operations that are required not to implement (MNI)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) in minor version 1. The first column indicates the operations that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) are not supported yet by the linux server implementation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) The OPTIONAL features identified and their abbreviations are as follows:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) - **pNFS** Parallel NFS
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) - **FDELG** File Delegations
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) - **DDELG** Directory Delegations
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) The following abbreviations indicate the linux server implementation status.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) - **I** Implemented NFSv4.1 operations.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) - **NS** Not Supported.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) - **NS\*** Unimplemented optional feature.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) Operations
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) ==========
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) | Implementation status | Operation | REQ,REC, OPT or NMI | Feature (REQ, REC or OPT) | Definition |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) +=======================+======================+=====================+===========================+================+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) | | ACCESS | REQ | | Section 18.1 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) | I | BACKCHANNEL_CTL | REQ | | Section 18.33 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) | I | BIND_CONN_TO_SESSION | REQ | | Section 18.34 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) | | CLOSE | REQ | | Section 18.2 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) | | COMMIT | REQ | | Section 18.3 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) | | CREATE | REQ | | Section 18.4 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) | I | CREATE_SESSION | REQ | | Section 18.36 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) | NS* | DELEGPURGE | OPT | FDELG (REQ) | Section 18.5 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) | | DELEGRETURN | OPT | FDELG, | Section 18.6 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) | | | | DDELG, pNFS | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) | | | | (REQ) | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) | I | DESTROY_CLIENTID | REQ | | Section 18.50 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) | I | DESTROY_SESSION | REQ | | Section 18.37 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) | I | EXCHANGE_ID | REQ | | Section 18.35 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) | I | FREE_STATEID | REQ | | Section 18.38 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) | | GETATTR | REQ | | Section 18.7 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) | I | GETDEVICEINFO | OPT | pNFS (REQ) | Section 18.40 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) | NS* | GETDEVICELIST | OPT | pNFS (OPT) | Section 18.41 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) | | GETFH | REQ | | Section 18.8 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 91) | NS* | GET_DIR_DELEGATION | OPT | DDELG (REQ) | Section 18.39 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 92) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 93) | I | LAYOUTCOMMIT | OPT | pNFS (REQ) | Section 18.42 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 94) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 95) | I | LAYOUTGET | OPT | pNFS (REQ) | Section 18.43 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 96) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 97) | I | LAYOUTRETURN | OPT | pNFS (REQ) | Section 18.44 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 98) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 99) | | LINK | OPT | | Section 18.9 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 100) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 101) | | LOCK | REQ | | Section 18.10 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 102) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 103) | | LOCKT | REQ | | Section 18.11 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 104) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 105) | | LOCKU | REQ | | Section 18.12 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 106) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 107) | | LOOKUP | REQ | | Section 18.13 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 108) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 109) | | LOOKUPP | REQ | | Section 18.14 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 110) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 111) | | NVERIFY | REQ | | Section 18.15 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 112) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 113) | | OPEN | REQ | | Section 18.16 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 114) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 115) | NS* | OPENATTR | OPT | | Section 18.17 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 116) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 117) | | OPEN_CONFIRM | MNI | | N/A |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 118) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 119) | | OPEN_DOWNGRADE | REQ | | Section 18.18 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 120) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 121) | | PUTFH | REQ | | Section 18.19 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 122) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 123) | | PUTPUBFH | REQ | | Section 18.20 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 124) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 125) | | PUTROOTFH | REQ | | Section 18.21 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 126) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 127) | | READ | REQ | | Section 18.22 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 128) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 129) | | READDIR | REQ | | Section 18.23 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 130) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 131) | | READLINK | OPT | | Section 18.24 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 132) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 133) | | RECLAIM_COMPLETE | REQ | | Section 18.51 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 134) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 135) | | RELEASE_LOCKOWNER | MNI | | N/A |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 136) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 137) | | REMOVE | REQ | | Section 18.25 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 138) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 139) | | RENAME | REQ | | Section 18.26 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 140) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 141) | | RENEW | MNI | | N/A |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 142) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 143) | | RESTOREFH | REQ | | Section 18.27 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 144) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 145) | | SAVEFH | REQ | | Section 18.28 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 146) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 147) | | SECINFO | REQ | | Section 18.29 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 148) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 149) | I | SECINFO_NO_NAME | REC | pNFS files | Section 18.45, |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 150) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 151) | | | | layout (REQ) | Section 13.12 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 152) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 153) | I | SEQUENCE | REQ | | Section 18.46 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 154) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 155) | | SETATTR | REQ | | Section 18.30 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 156) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 157) | | SETCLIENTID | MNI | | N/A |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 158) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 159) | | SETCLIENTID_CONFIRM | MNI | | N/A |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 160) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 161) | NS | SET_SSV | REQ | | Section 18.47 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 162) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 163) | I | TEST_STATEID | REQ | | Section 18.48 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 164) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 165) | | VERIFY | REQ | | Section 18.31 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 166) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 167) | NS* | WANT_DELEGATION | OPT | FDELG (OPT) | Section 18.49 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 168) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 169) | | WRITE | REQ | | Section 18.32 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 170) +-----------------------+----------------------+---------------------+---------------------------+----------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 171)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 172)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 173) Callback Operations
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 174) ===================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 175) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 176) | Implementation status | Operation | REQ,REC, OPT or NMI | Feature (REQ, REC or OPT) | Definition |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 177) +=======================+=========================+=====================+===========================+===============+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 178) | | CB_GETATTR | OPT | FDELG (REQ) | Section 20.1 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 179) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 180) | I | CB_LAYOUTRECALL | OPT | pNFS (REQ) | Section 20.3 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 181) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 182) | NS* | CB_NOTIFY | OPT | DDELG (REQ) | Section 20.4 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 183) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 184) | NS* | CB_NOTIFY_DEVICEID | OPT | pNFS (OPT) | Section 20.12 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 185) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 186) | NS* | CB_NOTIFY_LOCK | OPT | | Section 20.11 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 187) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 188) | NS* | CB_PUSH_DELEG | OPT | FDELG (OPT) | Section 20.5 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 189) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 190) | | CB_RECALL | OPT | FDELG, | Section 20.2 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 191) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 192) | | | | DDELG, pNFS | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 193) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 194) | | | | (REQ) | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 195) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 196) | NS* | CB_RECALL_ANY | OPT | FDELG, | Section 20.6 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 197) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 198) | | | | DDELG, pNFS | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 199) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 200) | | | | (REQ) | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 201) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 202) | NS | CB_RECALL_SLOT | REQ | | Section 20.8 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 203) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 204) | NS* | CB_RECALLABLE_OBJ_AVAIL | OPT | DDELG, pNFS | Section 20.7 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 205) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 206) | | | | (REQ) | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 207) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 208) | I | CB_SEQUENCE | OPT | FDELG, | Section 20.9 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 209) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 210) | | | | DDELG, pNFS | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 211) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 212) | | | | (REQ) | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 213) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 214) | NS* | CB_WANTS_CANCELLED | OPT | FDELG, | Section 20.10 |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 215) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 216) | | | | DDELG, pNFS | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 217) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 218) | | | | (REQ) | |
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 219) +-----------------------+-------------------------+---------------------+---------------------------+---------------+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 220)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 221)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 222) Implementation notes:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 223) =====================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 224)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 225) SSV:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 226) The spec claims this is mandatory, but we don't actually know of any
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 227) implementations, so we're ignoring it for now. The server returns
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 228) NFS4ERR_ENCR_ALG_UNSUPP on EXCHANGE_ID, which should be future-proof.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 229)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 230) GSS on the backchannel:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 231) Again, theoretically required but not widely implemented (in
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 232) particular, the current Linux client doesn't request it). We return
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 233) NFS4ERR_ENCR_ALG_UNSUPP on CREATE_SESSION.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 234)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 235) DELEGPURGE:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 236) mandatory only for servers that support CLAIM_DELEGATE_PREV and/or
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 237) CLAIM_DELEG_PREV_FH (which allows clients to keep delegations that
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 238) persist across client reboots). Thus we need not implement this for
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 239) now.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 240)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 241) EXCHANGE_ID:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 242) implementation ids are ignored
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 243)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 244) CREATE_SESSION:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 245) backchannel attributes are ignored
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 246)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 247) SEQUENCE:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 248) no support for dynamic slot table renegotiation (optional)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 249)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 250) Nonstandard compound limitations:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 251) No support for a sessions fore channel RPC compound that requires both a
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 252) ca_maxrequestsize request and a ca_maxresponsesize reply, so we may
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 253) fail to live up to the promise we made in CREATE_SESSION fore channel
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 254) negotiation.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 255)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 256) See also http://wiki.linux-nfs.org/wiki/index.php/Server_4.0_and_4.1_issues.