From: Steve French Date: Sun, 17 Aug 2014 11:43:58 +0000 (-0500) Subject: Incorrect error returned on setting file compressed on SMB2 X-Git-Tag: omap-for-v3.17/fixes-against-rc2~33^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad3829cf1db5cf6a5dfafd54f9291b44f5fb1da8;p=pandora-kernel.git 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 Reviewed-by: David Disseldorp --- Reading git-diff-tree failed