From aab1893d5fbeb7c931e97189f54a71ab0ecbf4c7 Mon Sep 17 00:00:00 2001 From: Steve French Date: Tue, 23 Jun 2015 23:37:11 -0500 Subject: Add SMB3.11 mount option synonym for new dialect Most people think of SMB 3.1.1 as SMB version 3.11 so add synonym for "vers=3.1.1" of "vers=3.11" on mount. Also make sure that unlike SMB3.0 and 3.02 we don't send validate negotiate on mount (it is handled by negotiate contexts) - add list of SMB3.11 specific functions (distinct from 3.0 dialect). Signed-off-by: Steve French w --- fs/cifs/connect.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fs/cifs/connect.c') diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 9300b98d8584..247f4dd228cc 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -282,6 +282,7 @@ static const match_table_t cifs_smb_version_tokens = { { Smb_302, SMB302_VERSION_STRING }, #ifdef CONFIG_CIFS_SMB311 { Smb_311, SMB311_VERSION_STRING }, + { Smb_311, ALT_SMB311_VERSION_STRING }, #endif /* SMB311 */ { Smb_version_err, NULL } }; @@ -1139,7 +1140,7 @@ cifs_parse_smb_version(char *value, struct smb_vol *vol) break; #ifdef CONFIG_CIFS_SMB311 case Smb_311: - vol->ops = &smb30_operations; /* currently identical with 3.0 */ + vol->ops = &smb311_operations; vol->vals = &smb311_values; break; #endif /* SMB311 */ -- cgit v1.2.3-58-ga151