diff options
author | Steve French <smfrench@gmail.com> | 2014-02-01 23:27:18 -0600 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2014-02-07 11:08:15 -0600 |
commit | d979f3b0a1f0b5499ab85e68cdf02b56852918b6 (patch) | |
tree | 31e601bff6aab26a5453ae30bd2c1bf0c2554e28 /fs/cifs/smb1ops.c | |
parent | 9343224bfd4be6a02e6ae0c0d66426c955c7d76e (diff) | |
download | linux-d979f3b0a1f0b5499ab85e68cdf02b56852918b6.tar.gz linux-d979f3b0a1f0b5499ab85e68cdf02b56852918b6.tar.bz2 linux-d979f3b0a1f0b5499ab85e68cdf02b56852918b6.zip |
Add protocol specific operation for CIFS xattrs
Changeset 666753c3ef8fc88b0ddd5be4865d0aa66428ac35 added protocol
operations for get/setxattr to avoid calling cifs operations
on smb2/smb3 mounts for xattr operations and this changeset
adds the calls to cifs specific protocol operations for xattrs
(in order to reenable cifs support for xattrs which was
temporarily disabled by the previous changeset. We do not
have SMB2/SMB3 worker function for setting xattrs yet so
this only enables it for cifs.
CCing stable since without these two small changsets (its
small coreq 666753c3ef8fc88b0ddd5be4865d0aa66428ac35 is
also needed) calling getfattr/setfattr on smb2/smb3 mounts
causes problems.
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Shirish Pargaonkar <spargaonkar@suse.com>
CC: Stable <stable@kernel.org>
Diffstat (limited to 'fs/cifs/smb1ops.c')
-rw-r--r-- | fs/cifs/smb1ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c index 9ac5bfc9cc56..3e4ff79e3031 100644 --- a/fs/cifs/smb1ops.c +++ b/fs/cifs/smb1ops.c @@ -1067,6 +1067,10 @@ struct smb_version_operations smb1_operations = { .query_mf_symlink = cifs_query_mf_symlink, .create_mf_symlink = cifs_create_mf_symlink, .is_read_op = cifs_is_read_op, +#ifdef CONFIG_CIFS_XATTR + .query_all_EAs = CIFSSMBQAllEAs, + .set_EA = CIFSSMBSetEA, +#endif /* CIFS_XATTR */ }; struct smb_version_values smb1_values = { |