summaryrefslogtreecommitdiffstats
path: root/fs/cifs/xattr.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-08-16 21:44:25 +0200
committerSteve French <sfrench@us.ibm.com>2006-08-16 21:44:25 +0200
commitea4c07d780a6f7b7be2d984117bd3e0a2b772e3d (patch)
tree5028cb83b1ff387a3c5d997b0688930bc2c55b08 /fs/cifs/xattr.c
parent[CIFS] endian errors in lanman protocol support (diff)
downloadlinux-ea4c07d780a6f7b7be2d984117bd3e0a2b772e3d.tar.xz
linux-ea4c07d780a6f7b7be2d984117bd3e0a2b772e3d.zip
[CIFS] Do not send Query All EAs SMB when mount option nouser_xattr
specified Pointed out by Bjoern Jacke Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/xattr.c')
-rw-r--r--fs/cifs/xattr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/cifs/xattr.c b/fs/cifs/xattr.c
index 7754d641775e..067648b7179b 100644
--- a/fs/cifs/xattr.c
+++ b/fs/cifs/xattr.c
@@ -330,11 +330,15 @@ ssize_t cifs_listxattr(struct dentry * direntry, char * data, size_t buf_size)
sb = direntry->d_inode->i_sb;
if(sb == NULL)
return -EIO;
- xid = GetXid();
cifs_sb = CIFS_SB(sb);
pTcon = cifs_sb->tcon;
+ if(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_XATTR)
+ return -EOPNOTSUPP;
+
+ xid = GetXid();
+
full_path = build_path_from_dentry(direntry);
if(full_path == NULL) {
FreeXid(xid);