diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2012-09-19 15:22:43 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-25 04:46:32 +0200 |
commit | 027e8eec31d8141a6231f772e10ccae60c9d5c13 (patch) | |
tree | 51128bb874abe71a416c6d36198c261e0142e606 /fs/cifs/smb2pdu.h | |
parent | CIFS: Move brlock code to ops struct (diff) | |
download | linux-027e8eec31d8141a6231f772e10ccae60c9d5c13.tar.xz linux-027e8eec31d8141a6231f772e10ccae60c9d5c13.zip |
CIFS: Handle SMB2 lock flags
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
-rw-r--r-- | fs/cifs/smb2pdu.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 3c8e99ea88ad..d2d132e94155 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h @@ -526,6 +526,11 @@ struct smb2_write_rsp { __u8 Buffer[1]; } __packed; +#define SMB2_LOCKFLAG_SHARED_LOCK 0x0001 +#define SMB2_LOCKFLAG_EXCLUSIVE_LOCK 0x0002 +#define SMB2_LOCKFLAG_UNLOCK 0x0004 +#define SMB2_LOCKFLAG_FAIL_IMMEDIATELY 0x0010 + struct smb2_echo_req { struct smb2_hdr hdr; __le16 StructureSize; /* Must be 4 */ |