]> git.baikalelectronics.ru Git - kernel.git/commit
CIFS: Introduce SMB2 mounts as vers=2.1
authorSteve French <sfrench@us.ibm.com>
Thu, 24 Feb 2011 18:07:19 +0000 (18:07 +0000)
committerPavel Shilovsky <pshilovsky@samba.org>
Wed, 23 May 2012 08:33:15 +0000 (12:33 +0400)
commit3fc7da7bde60f0c822c39c7e1b5b865838080201
treed15de03210e986f0acd64afecf930160df2ceaf2
parent136f2673b6fdae4e12e9b02dfe46846af7854b23
CIFS: Introduce SMB2 mounts as vers=2.1

As with Linux nfs client, which uses "nfsvers=" or "vers=" to
indicate which protocol to use for mount, specifying

"vers=2.1"

will force an SMB2 mount. When vers is not specified CIFS is used

"vers=1"

We can eventually autonegotiate down from SMB2 to CIFS
when SMB2 is stable enough to make it the default, but this
is for the future. At that time we could also implement a
"maxprotocol" mount option as smbclient and Samba have today,
but that would be premature until SMB2 is stable.

Intially the SMB2 Kconfig option will depend on "BROKEN"
until the merge is complete, and then be "EXPERIMENTAL"
When it is no longer experimental we can consider changing
the default protocol to attempt first.

Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/Makefile
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/smb2ops.c [new file with mode: 0644]