diff options
| author | Steve French <steve.french@primarydata.com> | 2014-12-17 23:52:58 -0500 |
|---|---|---|
| committer | Steve French <steve.french@primarydata.com> | 2015-06-27 23:23:32 -0400 |
| commit | 5f7fbf733c9dd6b58d40fa394313a5949b696f84 (patch) | |
| tree | 8124f7318569872366b1138680ef81800cb20ffe /fs/cifs/smb2pdu.c | |
| parent | f291095f340db986271e951e3891bb95624a93ea (diff) | |
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) | |||
| 393 | cifs_dbg(FYI, "negotiated smb3.0 dialect\n"); | 393 | cifs_dbg(FYI, "negotiated smb3.0 dialect\n"); |
| 394 | else if (rsp->DialectRevision == cpu_to_le16(SMB302_PROT_ID)) | 394 | else if (rsp->DialectRevision == cpu_to_le16(SMB302_PROT_ID)) |
| 395 | cifs_dbg(FYI, "negotiated smb3.02 dialect\n"); | 395 | cifs_dbg(FYI, "negotiated smb3.02 dialect\n"); |
| 396 | #ifdef CONFIG_CIFS_SMB311 | ||
| 397 | else if (rsp->DialectRevision == cpu_to_le16(SMB311_PROT_ID)) | ||
| 398 | cifs_dbg(FYI, "negotiated smb3.1.1 dialect\n"); | ||
| 399 | #endif /* SMB311 */ | ||
| 396 | else { | 400 | else { |
| 397 | cifs_dbg(VFS, "Illegal dialect returned by server %d\n", | 401 | cifs_dbg(VFS, "Illegal dialect returned by server %d\n", |
| 398 | le16_to_cpu(rsp->DialectRevision)); | 402 | le16_to_cpu(rsp->DialectRevision)); |
