diff options
author | Steve French <smfrench@gmail.com> | 2013-06-12 23:48:41 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-06-24 02:56:45 -0400 |
commit | 20b6d8b42e7e7c9af5046fe525d6709e10d14992 (patch) | |
tree | 116001ee65e9688793a8fe2b96502e456c54dd3b /fs/cifs/connect.c | |
parent | 9cd2e62c4952a00543685c6ee21cd2bf69b621e9 (diff) |
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.c | 5 |
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 = { | |||
276 | { Smb_20, SMB20_VERSION_STRING}, | 276 | { Smb_20, SMB20_VERSION_STRING}, |
277 | { Smb_21, SMB21_VERSION_STRING }, | 277 | { Smb_21, SMB21_VERSION_STRING }, |
278 | { Smb_30, SMB30_VERSION_STRING }, | 278 | { Smb_30, SMB30_VERSION_STRING }, |
279 | { Smb_302, SMB302_VERSION_STRING }, | ||
279 | }; | 280 | }; |
280 | 281 | ||
281 | static int ip_connect(struct TCP_Server_Info *server); | 282 | static int ip_connect(struct TCP_Server_Info *server); |
@@ -1124,6 +1125,10 @@ cifs_parse_smb_version(char *value, struct smb_vol *vol) | |||
1124 | vol->ops = &smb30_operations; | 1125 | vol->ops = &smb30_operations; |
1125 | vol->vals = &smb30_values; | 1126 | vol->vals = &smb30_values; |
1126 | break; | 1127 | break; |
1128 | case Smb_302: | ||
1129 | vol->ops = &smb30_operations; /* currently identical with 3.0 */ | ||
1130 | vol->vals = &smb302_values; | ||
1131 | break; | ||
1127 | #endif | 1132 | #endif |
1128 | default: | 1133 | default: |
1129 | cifs_dbg(VFS, "Unknown vers= option specified: %s\n", value); | 1134 | cifs_dbg(VFS, "Unknown vers= option specified: %s\n", value); |