diff options
author | Steve French <steve.french@primarydata.com> | 2014-12-17 22:52:58 -0600 |
---|---|---|
committer | Steve French <steve.french@primarydata.com> | 2015-06-27 20:23:32 -0700 |
commit | 5f7fbf733c9dd6b58d40fa394313a5949b696f84 (patch) | |
tree | 8124f7318569872366b1138680ef81800cb20ffe /fs/cifs/smb2pdu.c | |
parent | f291095f340db986271e951e3891bb95624a93ea (diff) | |
download | lwn-5f7fbf733c9dd6b58d40fa394313a5949b696f84.tar.gz lwn-5f7fbf733c9dd6b58d40fa394313a5949b696f84.zip |
Allow parsing vers=3.11 on cifs mount
Parses and recognizes "vers=3.1.1" on cifs mount and allows sending
0x0311 as a new CIFS/SMB3 dialect. Subsequent patches will add
the new negotiate contexts and updated session setup
Reviewed-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Steve French <steve.french@primarydata.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 54cbe19d9c08..150dbe3e2822 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -393,6 +393,10 @@ SMB2_negotiate(const unsigned int xid, struct cifs_ses *ses) 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"); +#ifdef CONFIG_CIFS_SMB311 + else if (rsp->DialectRevision == cpu_to_le16(SMB311_PROT_ID)) + cifs_dbg(FYI, "negotiated smb3.1.1 dialect\n"); +#endif /* SMB311 */ else { cifs_dbg(VFS, "Illegal dialect returned by server %d\n", le16_to_cpu(rsp->DialectRevision)); |