fs: return -EOPNOTSUPP if clone is not supported
authorChristoph Hellwig <hch@lst.de>
Fri, 26 Feb 2016 17:53:12 +0000 (18:53 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 28 Feb 2016 00:15:51 +0000 (19:15 -0500)
commit0fcbf996d848d03573113d83f4e3fb3bcfa5ab5e
tree4c338e97a056ce9eb6b6e55c126eca47640ba624
parentb6853f78e763d42c7a158d8de3549c9827c604ab
fs: return -EOPNOTSUPP if clone is not supported

-EBADF is a rather confusing error if an operations is not supported,
and nfsd gets rather upset about it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/read_write.c