diff options
author | Steve French <smfrench@gmail.com> | 2015-06-24 03:12:19 -0400 |
---|---|---|
committer | Steve French <steve.french@primarydata.com> | 2015-06-28 22:15:41 -0400 |
commit | 9d1b06602eb6716220c5988735c0b4944d62abaa (patch) | |
tree | e80883b87cc83c5a81f4591146d6c000acd49d54 /fs/cifs/smb2pdu.h | |
parent | 02b1666544c08e245cb4e2253ed575f8128943d6 (diff) |
Add Get/Set Integrity Information structure definitions
Signed-off-by: Steve French <steve.french@primarydata.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 8e7bbe54ebb0..c302e82f2575 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
@@ -621,6 +621,28 @@ struct copychunk_ioctl_rsp { | |||
621 | __le32 TotalBytesWritten; | 621 | __le32 TotalBytesWritten; |
622 | } __packed; | 622 | } __packed; |
623 | 623 | ||
624 | struct fsctl_set_integrity_information_req { | ||
625 | __le16 ChecksumAlgorithm; | ||
626 | __le16 Reserved; | ||
627 | __le32 Flags; | ||
628 | } __packed; | ||
629 | |||
630 | struct fsctl_get_integrity_information_rsp { | ||
631 | __le16 ChecksumAlgorithm; | ||
632 | __le16 Reserved; | ||
633 | __le32 Flags; | ||
634 | __le32 ChecksumChunkSizeInBytes; | ||
635 | __le32 ClusterSizeInBytes; | ||
636 | } __packed; | ||
637 | |||
638 | /* Integrity ChecksumAlgorithm choices for above */ | ||
639 | #define CHECKSUM_TYPE_NONE 0x0000 | ||
640 | #define CHECKSUM_TYPE_CRC64 0x0002 | ||
641 | |||
642 | /* Integrity flags for above */ | ||
643 | #define FSCTL_INTEGRITY_FLAG_CHECKSUM_ENFORCEMENT_OFF 0x00000001 | ||
644 | |||
645 | |||
624 | struct validate_negotiate_info_req { | 646 | struct validate_negotiate_info_req { |
625 | __le32 Capabilities; | 647 | __le32 Capabilities; |
626 | __u8 Guid[SMB2_CLIENT_GUID_SIZE]; | 648 | __u8 Guid[SMB2_CLIENT_GUID_SIZE]; |