aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fs.h
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2017-01-31 10:34:56 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2017-02-07 15:05:04 +0100
commit11cbfb10775aa2a01cee966d118049ede9d0bdf2 (patch)
tree582c22e5b6ab314682c0a21af365d67f28c56db3 /include/linux/fs.h
parentvfs: deny fallocate() on directory (diff)
downloadlinux-dev-11cbfb10775aa2a01cee966d118049ede9d0bdf2.tar.xz
linux-dev-11cbfb10775aa2a01cee966d118049ede9d0bdf2.zip
vfs: deny copy_file_range() for non regular files
There is no in-tree file system that implements copy_file_range() for non regular files. Deny an attempt to copy_file_range() a directory with EISDIR and any other non regualr file with EINVAL to conform with behavior of vfs_{clone,dedup}_file_range(). This change is needed prior to converting sb_start_write() to file_start_write() in the vfs helper. Cc: linux-api@vger.kernel.org Cc: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'include/linux/fs.h')
0 files changed, 0 insertions, 0 deletions