summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
authorPavel Shilovsky <piastry@etersoft.ru>2012-09-19 06:22:43 -0700
committerSteve French <smfrench@gmail.com>2012-09-24 21:46:32 -0500
commit027e8eec31d8141a6231f772e10ccae60c9d5c13 (patch)
tree51128bb874abe71a416c6d36198c261e0142e606 /fs/cifs/smb2pdu.h
parentd39a4f710b7a7be05b6ed9d4ab8fac754c139f8a (diff)
downloadblackbird-op-linux-027e8eec31d8141a6231f772e10ccae60c9d5c13.tar.gz
blackbird-op-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.h5
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 */
OpenPOWER on IntegriCloud