Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33680
b: refs/heads/master
c: ea4c07d
h: refs/heads/master
v: v3
  • Loading branch information
Steve French committed Aug 16, 2006
1 parent 19e4849 commit 4ef1894
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5ddaa683a513439081c9511b0d9ad490672c51c9
refs/heads/master: ea4c07d780a6f7b7be2d984117bd3e0a2b772e3d
3 changes: 2 additions & 1 deletion trunk/fs/cifs/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ time out requests if server still responding reasonably fast
on requests on other threads. Improve POSIX locking emulation,
(lock cancel now works, and unlock of merged range works even
to Windows servers now). Fix oops on mount to lanman servers
(win9x, os/2 etc.) when null password.
(win9x, os/2 etc.) when null password. Do not send listxattr
(SMB to query all EAs) if nouser_xattr specified.

Version 1.44
------------
Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/cifs/README
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ A partial list of the supported mount options follows:
user_xattr Allow getting and setting user xattrs as OS/2 EAs (extended
attributes) to the server (default) e.g. via setfattr
and getfattr utilities.
nouser_xattr Do not allow getfattr/setfattr to get/set xattrs
nouser_xattr Do not allow getfattr/setfattr to get/set/list xattrs
mapchars Translate six of the seven reserved characters (not backslash)
*?<>|:
to the remap range (above 0xF000), which also
Expand Down
6 changes: 5 additions & 1 deletion trunk/fs/cifs/xattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ef1894

Please sign in to comment.