projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CIFS: Introduce SMB2 mounts as vers=2.1
[deliverable/linux.git]
/
fs
/
cifs
/
connect.c
diff --git
a/fs/cifs/connect.c
b/fs/cifs/connect.c
index c71c11c9caab08763a26fcc0b996c6b3e4d3a575..ccafdedd0dbc4df14e04c0087d28b1dfa453be1f 100644
(file)
--- a/
fs/cifs/connect.c
+++ b/
fs/cifs/connect.c
@@
-1,7
+1,7
@@
/*
* fs/cifs/connect.c
*
/*
* fs/cifs/connect.c
*
- * Copyright (C) International Business Machines Corp., 2002,20
09
+ * Copyright (C) International Business Machines Corp., 2002,20
11
* Author(s): Steve French (sfrench@us.ibm.com)
*
* This library is free software; you can redistribute it and/or modify
* Author(s): Steve French (sfrench@us.ibm.com)
*
* This library is free software; you can redistribute it and/or modify
@@
-278,6
+278,7
@@
static const match_table_t cifs_cacheflavor_tokens = {
static const match_table_t cifs_smb_version_tokens = {
{ Smb_1, SMB1_VERSION_STRING },
static const match_table_t cifs_smb_version_tokens = {
{ Smb_1, SMB1_VERSION_STRING },
+ { Smb_21, SMB21_VERSION_STRING },
};
static int ip_connect(struct TCP_Server_Info *server);
};
static int ip_connect(struct TCP_Server_Info *server);
@@
-1221,6
+1222,12
@@
cifs_parse_smb_version(char *value, struct smb_vol *vol)
vol->ops = &smb1_operations;
vol->vals = &smb1_values;
break;
vol->ops = &smb1_operations;
vol->vals = &smb1_values;
break;
+#ifdef CONFIG_CIFS_SMB2
+ case Smb_21:
+ vol->ops = &smb21_operations;
+ vol->vals = &smb21_values;
+ break;
+#endif
default:
cERROR(1, "Unknown vers= option specified: %s", value);
return 1;
default:
cERROR(1, "Unknown vers= option specified: %s", value);
return 1;
This page took
0.026947 seconds
and
5
git commands to generate.