diff options
| -rw-r--r-- | fs/cifs/CHANGES | 3 | ||||
| -rw-r--r-- | fs/cifs/README | 2 | ||||
| -rw-r--r-- | fs/cifs/xattr.c | 6 |
3 files changed, 8 insertions, 3 deletions
diff --git a/fs/cifs/CHANGES b/fs/cifs/CHANGES index bd37727526ea..0feb3bd49cb8 100644 --- a/fs/cifs/CHANGES +++ b/fs/cifs/CHANGES | |||
| @@ -5,7 +5,8 @@ time out requests if server still responding reasonably fast | |||
| 5 | on requests on other threads. Improve POSIX locking emulation, | 5 | on requests on other threads. Improve POSIX locking emulation, |
| 6 | (lock cancel now works, and unlock of merged range works even | 6 | (lock cancel now works, and unlock of merged range works even |
| 7 | to Windows servers now). Fix oops on mount to lanman servers | 7 | to Windows servers now). Fix oops on mount to lanman servers |
| 8 | (win9x, os/2 etc.) when null password. | 8 | (win9x, os/2 etc.) when null password. Do not send listxattr |
| 9 | (SMB to query all EAs) if nouser_xattr specified. | ||
| 9 | 10 | ||
| 10 | Version 1.44 | 11 | Version 1.44 |
| 11 | ------------ | 12 | ------------ |
diff --git a/fs/cifs/README b/fs/cifs/README index 7986d0d97ace..5f0e1bd64fee 100644 --- a/fs/cifs/README +++ b/fs/cifs/README | |||
| @@ -408,7 +408,7 @@ A partial list of the supported mount options follows: | |||
| 408 | user_xattr Allow getting and setting user xattrs as OS/2 EAs (extended | 408 | user_xattr Allow getting and setting user xattrs as OS/2 EAs (extended |
| 409 | attributes) to the server (default) e.g. via setfattr | 409 | attributes) to the server (default) e.g. via setfattr |
| 410 | and getfattr utilities. | 410 | and getfattr utilities. |
| 411 | nouser_xattr Do not allow getfattr/setfattr to get/set xattrs | 411 | nouser_xattr Do not allow getfattr/setfattr to get/set/list xattrs |
| 412 | mapchars Translate six of the seven reserved characters (not backslash) | 412 | mapchars Translate six of the seven reserved characters (not backslash) |
| 413 | *?<>|: | 413 | *?<>|: |
| 414 | to the remap range (above 0xF000), which also | 414 | to the remap range (above 0xF000), which also |
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) | |||
| 330 | sb = direntry->d_inode->i_sb; | 330 | sb = direntry->d_inode->i_sb; |
| 331 | if(sb == NULL) | 331 | if(sb == NULL) |
| 332 | return -EIO; | 332 | return -EIO; |
| 333 | xid = GetXid(); | ||
| 334 | 333 | ||
| 335 | cifs_sb = CIFS_SB(sb); | 334 | cifs_sb = CIFS_SB(sb); |
| 336 | pTcon = cifs_sb->tcon; | 335 | pTcon = cifs_sb->tcon; |
| 337 | 336 | ||
| 337 | if(cifs_sb->mnt_cifs_flags & CIFS_MOUNT_NO_XATTR) | ||
| 338 | return -EOPNOTSUPP; | ||
| 339 | |||
| 340 | xid = GetXid(); | ||
| 341 | |||
| 338 | full_path = build_path_from_dentry(direntry); | 342 | full_path = build_path_from_dentry(direntry); |
| 339 | if(full_path == NULL) { | 343 | if(full_path == NULL) { |
| 340 | FreeXid(xid); | 344 | FreeXid(xid); |
