diff options
author | Steve French <smfrench@gmail.com> | 2012-11-28 23:21:06 -0600 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-05 13:27:29 -0600 |
commit | dd446b16edd74ca525208d924d426f786dd973f8 (patch) | |
tree | 5699eb645592ce2cc078ced6a91df6916ff577ae /fs/cifs/connect.c | |
parent | 21cb2d90c76cbc951da3a266f0dd439d64f3114a (diff) | |
download | lwn-dd446b16edd74ca525208d924d426f786dd973f8.tar.gz lwn-dd446b16edd74ca525208d924d426f786dd973f8.zip |
Add SMB2.02 dialect support
This patch enables optional for original SMB2 (SMB2.02) dialect
by specifying vers=2.0 on mount.
Reviewed-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <smfrench@gmail.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 5ce5686353f1..d01c7328dbae 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -274,6 +274,7 @@ static const match_table_t cifs_cacheflavor_tokens = { static const match_table_t cifs_smb_version_tokens = { { Smb_1, SMB1_VERSION_STRING }, + { Smb_20, SMB20_VERSION_STRING}, { Smb_21, SMB21_VERSION_STRING }, { Smb_30, SMB30_VERSION_STRING }, }; @@ -1074,6 +1075,10 @@ cifs_parse_smb_version(char *value, struct smb_vol *vol) vol->vals = &smb1_values; break; #ifdef CONFIG_CIFS_SMB2 + case Smb_20: + vol->ops = &smb21_operations; /* currently identical with 2.1 */ + vol->vals = &smb20_values; + break; case Smb_21: vol->ops = &smb21_operations; vol->vals = &smb21_values; |