aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilovsky@etersoft.ru>2012-09-19 09:22:43 -0400
committerSteve French <smfrench@gmail.com>2012-09-24 22:46:33 -0400
commitf7ba7fe685bc3ed8fd0687870e68b2567d17357f (patch)
tree364ff08cf616cc740467d44d5026a05ce9d0c33c /fs/cifs/smb2pdu.h
parent027e8eec31d8141a6231f772e10ccae60c9d5c13 (diff)
CIFS: Add brlock support for SMB2
Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r--fs/cifs/smb2pdu.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h
index d2d132e94155..889ee5e193d9 100644
--- a/fs/cifs/smb2pdu.h
+++ b/fs/cifs/smb2pdu.h
@@ -531,6 +531,30 @@ struct smb2_write_rsp {
531#define SMB2_LOCKFLAG_UNLOCK 0x0004 531#define SMB2_LOCKFLAG_UNLOCK 0x0004
532#define SMB2_LOCKFLAG_FAIL_IMMEDIATELY 0x0010 532#define SMB2_LOCKFLAG_FAIL_IMMEDIATELY 0x0010
533 533
534struct smb2_lock_element {
535 __le64 Offset;
536 __le64 Length;
537 __le32 Flags;
538 __le32 Reserved;
539} __packed;
540
541struct smb2_lock_req {
542 struct smb2_hdr hdr;
543 __le16 StructureSize; /* Must be 48 */
544 __le16 LockCount;
545 __le32 Reserved;
546 __u64 PersistentFileId; /* opaque endianness */
547 __u64 VolatileFileId; /* opaque endianness */
548 /* Followed by at least one */
549 struct smb2_lock_element locks[1];
550} __packed;
551
552struct smb2_lock_rsp {
553 struct smb2_hdr hdr;
554 __le16 StructureSize; /* Must be 4 */
555 __le16 Reserved;
556} __packed;
557
534struct smb2_echo_req { 558struct smb2_echo_req {
535 struct smb2_hdr hdr; 559 struct smb2_hdr hdr;
536 __le16 StructureSize; /* Must be 4 */ 560 __le16 StructureSize; /* Must be 4 */