aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2014-05-14 08:29:40 -0400
committerSteve French <smfrench@gmail.com>2014-05-21 13:18:06 -0400
commit12197a7fdda9f7db18657f907e531318fefc4a68 (patch)
treefbaf658a0bcf7078abc40755370d0af48eb85944 /fs/cifs/smb2ops.c
parent3c5f9be108783c05cade918d29c8711b236acb1d (diff)
Clarify SMB2/SMB3 create context and add missing ones
Clarify comments for create contexts which we do send, and fix typo in one create context definition and add newer SMB3 create contexts to the list. Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 35ddc3ed119d..787844bde384 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -1047,6 +1047,7 @@ smb2_create_lease_buf(u8 *lease_key, u8 oplock)
1047 buf->ccontext.NameOffset = cpu_to_le16(offsetof 1047 buf->ccontext.NameOffset = cpu_to_le16(offsetof
1048 (struct create_lease, Name)); 1048 (struct create_lease, Name));
1049 buf->ccontext.NameLength = cpu_to_le16(4); 1049 buf->ccontext.NameLength = cpu_to_le16(4);
1050 /* SMB2_CREATE_REQUEST_LEASE is "RqLs" */
1050 buf->Name[0] = 'R'; 1051 buf->Name[0] = 'R';
1051 buf->Name[1] = 'q'; 1052 buf->Name[1] = 'q';
1052 buf->Name[2] = 'L'; 1053 buf->Name[2] = 'L';
@@ -1073,6 +1074,7 @@ smb3_create_lease_buf(u8 *lease_key, u8 oplock)
1073 buf->ccontext.NameOffset = cpu_to_le16(offsetof 1074 buf->ccontext.NameOffset = cpu_to_le16(offsetof
1074 (struct create_lease_v2, Name)); 1075 (struct create_lease_v2, Name));
1075 buf->ccontext.NameLength = cpu_to_le16(4); 1076 buf->ccontext.NameLength = cpu_to_le16(4);
1077 /* SMB2_CREATE_REQUEST_LEASE is "RqLs" */
1076 buf->Name[0] = 'R'; 1078 buf->Name[0] = 'R';
1077 buf->Name[1] = 'q'; 1079 buf->Name[1] = 'q';
1078 buf->Name[2] = 'L'; 1080 buf->Name[2] = 'L';