summaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.c
diff options
context:
space:
mode:
authorSteve French2013-06-13 05:48:41 +0200
committerSteve French2013-06-24 08:56:45 +0200
commit20b6d8b42e7e7c9af5046fe525d6709e10d14992 (patch)
tree116001ee65e9688793a8fe2b96502e456c54dd3b /fs/cifs/connect.c
parentFix endian error in SMB2 protocol negotiation (diff)
downloadkernel-qcow2-linux-20b6d8b42e7e7c9af5046fe525d6709e10d14992.tar.gz
kernel-qcow2-linux-20b6d8b42e7e7c9af5046fe525d6709e10d14992.tar.xz
kernel-qcow2-linux-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/connect.c')
-rw-r--r--fs/cifs/connect.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index c4c6aa99ee1c..d5f866afe560 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -276,6 +276,7 @@ static const match_table_t cifs_smb_version_tokens = {
{ Smb_20, SMB20_VERSION_STRING},
{ Smb_21, SMB21_VERSION_STRING },
{ Smb_30, SMB30_VERSION_STRING },
+ { Smb_302, SMB302_VERSION_STRING },
};
static int ip_connect(struct TCP_Server_Info *server);
@@ -1124,6 +1125,10 @@ cifs_parse_smb_version(char *value, struct smb_vol *vol)
vol->ops = &smb30_operations;
vol->vals = &smb30_values;
break;
+ case Smb_302:
+ vol->ops = &smb30_operations; /* currently identical with 3.0 */
+ vol->vals = &smb302_values;
+ break;
#endif
default:
cifs_dbg(VFS, "Unknown vers= option specified: %s\n", value);