aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@samba.org>2012-09-18 19:20:29 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:28 -0400
commit33319141252fd14b58cf13685156c23dcaac2527 (patch)
treeeebda8dab0fd4e759f58111f7a3d2fcef3e90b7f /fs/cifs/smb2pdu.h
parentc9de5c80d536e556568ccd45b9599870d4993b7d (diff)
CIFS: Add SMB2 support for cifs_iovec_write
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org> Signed-off-by: Steve French <smfrench@gmail.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r--fs/cifs/smb2pdu.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index 4abb58106809..21ec9ed280f9 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -496,6 +496,36 @@ struct smb2_read_rsp {
496 __u8 Buffer[1]; 496 __u8 Buffer[1];
497} __packed; 497} __packed;
498 498
499/* For write request Flags field below the following flag is defined: */
500#define SMB2_WRITEFLAG_WRITE_THROUGH 0x00000001
501
502struct smb2_write_req {
503 struct smb2_hdr hdr;
504 __le16 StructureSize; /* Must be 49 */
505 __le16 DataOffset; /* offset from start of SMB2 header to write data */
506 __le32 Length;
507 __le64 Offset;
508 __u64 PersistentFileId; /* opaque endianness */
509 __u64 VolatileFileId; /* opaque endianness */
510 __le32 Channel; /* Reserved MBZ */
511 __le32 RemainingBytes;
512 __le16 WriteChannelInfoOffset; /* Reserved MBZ */
513 __le16 WriteChannelInfoLength; /* Reserved MBZ */
514 __le32 Flags;
515 __u8 Buffer[1];
516} __packed;
517
518struct smb2_write_rsp {
519 struct smb2_hdr hdr;
520 __le16 StructureSize; /* Must be 17 */
521 __u8 DataOffset;
522 __u8 Reserved;
523 __le32 DataLength;
524 __le32 DataRemaining;
525 __u32 Reserved2;
526 __u8 Buffer[1];
527} __packed;
528
499struct smb2_echo_req { 529struct smb2_echo_req {
500 struct smb2_hdr hdr; 530 struct smb2_hdr hdr;
501 __le16 StructureSize; /* Must be 4 */ 531 __le16 StructureSize; /* Must be 4 */