]> Pileus Git - ~andy/linux/commit
Do not attempt 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>
Wed, 31 Jul 2013 04:54:45 +0000 (23:54 -0500)
commit1b244081af462c223cfa6a1ae881a902af64c306
tree0b950b63d907f4fb3394f16a8e179a4f05857ac1
parent057d6332b24a4497c55a761c83c823eed9e3f23b
Do not attempt 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