]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Do not attemp to do cifs operations reading symlinks with SMB2
authorSteve French <smfrench@gmail.com>
Fri, 12 Jul 2013 00:17:40 +0000 (19:17 -0500)
committerSteve French <smfrench@gmail.com>
Mon, 15 Jul 2013 19:57:07 +0000 (14:57 -0500)
commitf004296f6062bc6f5b08f193c559a02e6bdc5411
treeffc225dd49576839f2a9cf612759343c496d91b2
parent47188d39b5deeebf41f87a02af1b3935866364cf
Do not attemp to do cifs operations reading symlinks with SMB2

When use of symlinks is enabled (mounting with mfsymlinks option) to
non-Samba servers, we always tried to use cifs, even when we
were mounted with SMB2 or SMB3, which causes the server to drop the
network connection.

This patch separates out the protocol specific operations for cifs from
the code which recognizes symlinks, and fixes the problem where
with SMB2 mounts we attempt cifs operations to open and read
symlinks.  The next patch will add support for SMB2 for opening
and reading symlinks.  Additional followon patches will address
the similar problem creating symlinks.

Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/link.c
fs/cifs/smb1ops.c