diff options
author | Steve French <smfrench@gmail.com> | 2014-05-14 14:29:40 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2014-05-21 19:18:06 +0200 |
commit | 12197a7fdda9f7db18657f907e531318fefc4a68 (patch) | |
tree | fbaf658a0bcf7078abc40755370d0af48eb85944 /fs/cifs/smb2pdu.c | |
parent | Do not send ClientGUID on SMB2.02 dialect (diff) | |
download | linux-12197a7fdda9f7db18657f907e531318fefc4a68.tar.xz linux-12197a7fdda9f7db18657f907e531318fefc4a68.zip |
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/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 0feb743894b8..b0037b609c54 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -972,6 +972,7 @@ create_durable_buf(void) buf->ccontext.NameOffset = cpu_to_le16(offsetof (struct create_durable, Name)); buf->ccontext.NameLength = cpu_to_le16(4); + /* SMB2_CREATE_DURABLE_HANDLE_REQUEST is "DHnQ" */ buf->Name[0] = 'D'; buf->Name[1] = 'H'; buf->Name[2] = 'n'; @@ -996,6 +997,7 @@ create_reconnect_durable_buf(struct cifs_fid *fid) buf->ccontext.NameLength = cpu_to_le16(4); buf->Data.Fid.PersistentFileId = fid->persistent_fid; buf->Data.Fid.VolatileFileId = fid->volatile_fid; + /* SMB2_CREATE_DURABLE_HANDLE_RECONNECT is "DHnC" */ buf->Name[0] = 'D'; buf->Name[1] = 'H'; buf->Name[2] = 'n'; |