mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
nfsd41: implement NFS4_SHARE_WANT_NO_DELEG, NFS4_OPEN_DELEGATE_NONE_EXT, why_no_deleg
Respect client request for not getting a delegation in NFSv4.1 Appropriately return delegation "type" NFS4_OPEN_DELEGATE_NONE_EXT and WND4_NOT_WANTED reason. [nfsd41: add missing break when encoding op_why_no_deleg] Signed-off-by: Benny Halevy <bhalevy@tonian.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
03cfb42025
commit
d24433cdc9
4 changed files with 82 additions and 8 deletions
|
@ -441,7 +441,20 @@ enum limit_by4 {
|
|||
enum open_delegation_type4 {
|
||||
NFS4_OPEN_DELEGATE_NONE = 0,
|
||||
NFS4_OPEN_DELEGATE_READ = 1,
|
||||
NFS4_OPEN_DELEGATE_WRITE = 2
|
||||
NFS4_OPEN_DELEGATE_WRITE = 2,
|
||||
NFS4_OPEN_DELEGATE_NONE_EXT = 3, /* 4.1 */
|
||||
};
|
||||
|
||||
enum why_no_delegation4 { /* new to v4.1 */
|
||||
WND4_NOT_WANTED = 0,
|
||||
WND4_CONTENTION = 1,
|
||||
WND4_RESOURCE = 2,
|
||||
WND4_NOT_SUPP_FTYPE = 3,
|
||||
WND4_WRITE_DELEG_NOT_SUPP_FTYPE = 4,
|
||||
WND4_NOT_SUPP_UPGRADE = 5,
|
||||
WND4_NOT_SUPP_DOWNGRADE = 6,
|
||||
WND4_CANCELLED = 7,
|
||||
WND4_IS_DIR = 8,
|
||||
};
|
||||
|
||||
enum lock_type4 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue