CIFS: Fix SMB2 mounts so they don't try to set or get xattrs via cifs
authorSteve French <smfrench@gmail.com>
Mon, 27 Jan 2014 05:53:43 +0000 (23:53 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Feb 2014 21:32:24 +0000 (13:32 -0800)
commitabd26808eb1d798830d6cb7bd97b8ef0919082bc
tree798185849520ea9f2a96d459738408f06f5fc5bf
parent4ee4d7ae04c4996b3dbd02b5990927432c7eddec
CIFS: Fix SMB2 mounts so they don't try to set or get xattrs via cifs

commit 666753c3ef8fc88b0ddd5be4865d0aa66428ac35 upstream.

When mounting with smb2 (or smb2.1 or smb3) we need to check to make
sure that attempts to query or set extended attributes do not
attempt to send the request with the older cifs protocol instead
(eventually we also need to add the support in SMB2
to query/set extended attributes but this patch prevents us from
using the wrong protocol for extended attribute operations).

Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/cifsglob.h
fs/cifs/xattr.c