diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-19 09:22:45 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 22:46:33 -0400 |
commit | 0822f51426b51bd599b3a7e972b14aacaa045a92 (patch) | |
tree | c11376ec62881566a6ca9e1f7ef85881fc961599 /fs/cifs/smb2pdu.h | |
parent | 25078105fbe14e7b3270391eaa11514bec787a52 (diff) |
CIFS: Add SMB2.1 lease break support
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index e818a5cc5bd8..da099225b1a9 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h | |||
@@ -693,6 +693,31 @@ struct smb2_oplock_break { | |||
693 | __u64 VolatileFid; | 693 | __u64 VolatileFid; |
694 | } __packed; | 694 | } __packed; |
695 | 695 | ||
696 | #define SMB2_NOTIFY_BREAK_LEASE_FLAG_ACK_REQUIRED cpu_to_le32(0x01) | ||
697 | |||
698 | struct smb2_lease_break { | ||
699 | struct smb2_hdr hdr; | ||
700 | __le16 StructureSize; /* Must be 44 */ | ||
701 | __le16 Reserved; | ||
702 | __le32 Flags; | ||
703 | __u8 LeaseKey[16]; | ||
704 | __le32 CurrentLeaseState; | ||
705 | __le32 NewLeaseState; | ||
706 | __le32 BreakReason; | ||
707 | __le32 AccessMaskHint; | ||
708 | __le32 ShareMaskHint; | ||
709 | } __packed; | ||
710 | |||
711 | struct smb2_lease_ack { | ||
712 | struct smb2_hdr hdr; | ||
713 | __le16 StructureSize; /* Must be 36 */ | ||
714 | __le16 Reserved; | ||
715 | __le32 Flags; | ||
716 | __u8 LeaseKey[16]; | ||
717 | __le32 LeaseState; | ||
718 | __le64 LeaseDuration; | ||
719 | } __packed; | ||
720 | |||
696 | /* | 721 | /* |
697 | * PDU infolevel structure definitions | 722 | * PDU infolevel structure definitions |
698 | * BB consider moving to a different header | 723 | * BB consider moving to a different header |