]> git.baikalelectronics.ru Git - kernel.git/commit
Incorrect error returned on setting file compressed on SMB2
authorSteve French <smfrench@gmail.com>
Sun, 17 Aug 2014 11:43:58 +0000 (06:43 -0500)
committerSteve French <smfrench@gmail.com>
Sun, 17 Aug 2014 23:12:31 +0000 (18:12 -0500)
commit9ed29e918c87f5f0597272d3271496cca8be6fc1
tree385b5e2d45e641eced26910e6083dba114af2818
parent03e414af04c37584bf276eb6b1a2fb8a73f02956
Incorrect error returned on setting file compressed on SMB2

When the server (for an SMB2 or SMB3 mount) doesn't support
an ioctl (such as setting the compressed flag
on a file) we were incorrectly returning EIO instead
of EOPNOTSUPP, this is confusing e.g. doing chattr +c to a file
on a non-btrfs Samba partition, now the error returned is more
intuitive to the user.  Also fixes error mapping on setting
hardlink to servers which don't support that.

Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
fs/cifs/smb2maperror.c