summaryrefslogtreecommitdiffstats
path: root/fs/cifs/connect.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/connect.c
parent9cd2e62c4952a00543685c6ee21cd2bf69b621e9 (diff)
downloadop-kernel-dev-20b6d8b42e7e7c9af5046fe525d6709e10d14992.zip
op-kernel-dev-20b6d8b42e7e7c9af5046fe525d6709e10d14992.tar.gz
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 c4c6aa9..d5f866a 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);
OpenPOWER on IntegriCloud