diff options
Diffstat (limited to 'fs/cifs/smb2pdu.h')
| -rw-r--r-- | fs/cifs/smb2pdu.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 451108284a2f..4af52780ec35 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
| @@ -590,6 +590,44 @@ struct create_durable { | |||
| 590 | } Data; | 590 | } Data; |
| 591 | } __packed; | 591 | } __packed; |
| 592 | 592 | ||
| 593 | /* See MS-SMB2 2.2.13.2.11 */ | ||
| 594 | /* Flags */ | ||
| 595 | #define SMB2_DHANDLE_FLAG_PERSISTENT 0x00000002 | ||
| 596 | struct durable_context_v2 { | ||
| 597 | __le32 Timeout; | ||
| 598 | __le32 Flags; | ||
| 599 | __u64 Reserved; | ||
| 600 | __u8 CreateGuid[16]; | ||
| 601 | } __packed; | ||
| 602 | |||
| 603 | struct create_durable_v2 { | ||
| 604 | struct create_context ccontext; | ||
| 605 | __u8 Name[8]; | ||
| 606 | struct durable_context_v2 dcontext; | ||
| 607 | } __packed; | ||
| 608 | |||
| 609 | /* See MS-SMB2 2.2.13.2.12 */ | ||
| 610 | struct durable_reconnect_context_v2 { | ||
| 611 | struct { | ||
| 612 | __u64 PersistentFileId; | ||
| 613 | __u64 VolatileFileId; | ||
| 614 | } Fid; | ||
| 615 | __u8 CreateGuid[16]; | ||
| 616 | __le32 Flags; /* see above DHANDLE_FLAG_PERSISTENT */ | ||
| 617 | } __packed; | ||
| 618 | |||
| 619 | /* See MS-SMB2 2.2.14.2.12 */ | ||
| 620 | struct durable_reconnect_context_v2_rsp { | ||
| 621 | __le32 Timeout; | ||
| 622 | __le32 Flags; /* see above DHANDLE_FLAG_PERSISTENT */ | ||
| 623 | } __packed; | ||
| 624 | |||
| 625 | struct create_durable_handle_reconnect_v2 { | ||
| 626 | struct create_context ccontext; | ||
| 627 | __u8 Name[8]; | ||
| 628 | struct durable_reconnect_context_v2 dcontext; | ||
| 629 | } __packed; | ||
| 630 | |||
| 593 | #define COPY_CHUNK_RES_KEY_SIZE 24 | 631 | #define COPY_CHUNK_RES_KEY_SIZE 24 |
| 594 | struct resume_key_req { | 632 | struct resume_key_req { |
| 595 | char ResumeKey[COPY_CHUNK_RES_KEY_SIZE]; | 633 | char ResumeKey[COPY_CHUNK_RES_KEY_SIZE]; |
| @@ -643,6 +681,13 @@ struct fsctl_get_integrity_information_rsp { | |||
| 643 | /* Integrity flags for above */ | 681 | /* Integrity flags for above */ |
| 644 | #define FSCTL_INTEGRITY_FLAG_CHECKSUM_ENFORCEMENT_OFF 0x00000001 | 682 | #define FSCTL_INTEGRITY_FLAG_CHECKSUM_ENFORCEMENT_OFF 0x00000001 |
| 645 | 683 | ||
| 684 | /* See MS-SMB2 2.2.31.3 */ | ||
| 685 | struct network_resiliency_req { | ||
| 686 | __le32 Timeout; | ||
| 687 | __le32 Reserved; | ||
| 688 | } __packed; | ||
| 689 | /* There is no buffer for the response ie no struct network_resiliency_rsp */ | ||
| 690 | |||
| 646 | 691 | ||
| 647 | struct validate_negotiate_info_req { | 692 | struct validate_negotiate_info_req { |
| 648 | __le32 Capabilities; | 693 | __le32 Capabilities; |
