diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-18 19:20:29 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:27 -0400 |
commit | 09a4707e7638247302c6d798061aed117141fb74 (patch) | |
tree | d31b23d8b91941b30425d6a4d8235d9e91d7afef /fs/cifs/smb2pdu.h | |
parent | fc9c59662e0cd37577556d0de865268baeb9b293 (diff) |
CIFS: Add SMB2 support for cifs_iovec_read
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index f5bf63f66971..4abb58106809 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
@@ -468,6 +468,34 @@ struct smb2_flush_rsp { | |||
468 | __le16 Reserved; | 468 | __le16 Reserved; |
469 | } __packed; | 469 | } __packed; |
470 | 470 | ||
471 | struct smb2_read_req { | ||
472 | struct smb2_hdr hdr; | ||
473 | __le16 StructureSize; /* Must be 49 */ | ||
474 | __u8 Padding; /* offset from start of SMB2 header to place read */ | ||
475 | __u8 Reserved; | ||
476 | __le32 Length; | ||
477 | __le64 Offset; | ||
478 | __u64 PersistentFileId; /* opaque endianness */ | ||
479 | __u64 VolatileFileId; /* opaque endianness */ | ||
480 | __le32 MinimumCount; | ||
481 | __le32 Channel; /* Reserved MBZ */ | ||
482 | __le32 RemainingBytes; | ||
483 | __le16 ReadChannelInfoOffset; /* Reserved MBZ */ | ||
484 | __le16 ReadChannelInfoLength; /* Reserved MBZ */ | ||
485 | __u8 Buffer[1]; | ||
486 | } __packed; | ||
487 | |||
488 | struct smb2_read_rsp { | ||
489 | struct smb2_hdr hdr; | ||
490 | __le16 StructureSize; /* Must be 17 */ | ||
491 | __u8 DataOffset; | ||
492 | __u8 Reserved; | ||
493 | __le32 DataLength; | ||
494 | __le32 DataRemaining; | ||
495 | __u32 Reserved2; | ||
496 | __u8 Buffer[1]; | ||
497 | } __packed; | ||
498 | |||
471 | struct smb2_echo_req { | 499 | struct smb2_echo_req { |
472 | struct smb2_hdr hdr; | 500 | struct smb2_hdr hdr; |
473 | __le16 StructureSize; /* Must be 4 */ | 501 | __le16 StructureSize; /* Must be 4 */ |