aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorSteve French <smfrench@gmail.com>2013-06-12 22:48:41 -0500
committerSteve French <smfrench@gmail.com>2013-06-24 01:56:45 -0500
commit20b6d8b42e7e7c9af5046fe525d6709e10d14992 (patch)
tree116001ee65e9688793a8fe2b96502e456c54dd3b /fs/cifs/smb2pdu.c
parentFix endian error in SMB2 protocol negotiation (diff)
downloadlinux-dev-20b6d8b42e7e7c9af5046fe525d6709e10d14992.tar.xz
linux-dev-20b6d8b42e7e7c9af5046fe525d6709e10d14992.zip
Add SMB3.02 dialect support
The new Windows update supports SMB3.02 dialect, a minor update to SMB3. This patch adds support for mounting with vers=3.02 Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index a20a8a7e1470..cb155bfb3411 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -386,6 +386,8 @@ SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses)
cifs_dbg(FYI, "negotiated smb2.1 dialect\n");
else if (rsp->DialectRevision == cpu_to_le16(SMB30_PROT_ID))
cifs_dbg(FYI, "negotiated smb3.0 dialect\n");
+ else if (rsp->DialectRevision == cpu_to_le16(SMB302_PROT_ID))
+ cifs_dbg(FYI, "negotiated smb3.02 dialect\n");
else {
cifs_dbg(VFS, "Illegal dialect returned by server %d\n",
le16_to_cpu(rsp->DialectRevision));