summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.h
diff options
context:
space:
mode:
authorSteve French2014-08-17 13:43:58 +0200
committerSteve French2014-08-18 01:12:31 +0200
commitad3829cf1db5cf6a5dfafd54f9291b44f5fb1da8 (patch)
tree385b5e2d45e641eced26910e6083dba114af2818 /fs/cifs/smb2pdu.h
parentCIFS: Fix wrong directory attributes after rename (diff)
downloadkernel-qcow2-linux-ad3829cf1db5cf6a5dfafd54f9291b44f5fb1da8.tar.gz
kernel-qcow2-linux-ad3829cf1db5cf6a5dfafd54f9291b44f5fb1da8.tar.xz
kernel-qcow2-linux-ad3829cf1db5cf6a5dfafd54f9291b44f5fb1da8.zip
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>
Diffstat (limited to 'fs/cifs/smb2pdu.h')
0 files changed, 0 insertions, 0 deletions