summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2019-04-11 14:34:18 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-31 06:46:03 -0700
commitcc1afc1050a94be73f85c81889941f1fa7cda0e4 (patch)
treee35a7ede2726cbd9b4964388bc782fab8de7af79 /Documentation
parente1eed6928b3ee66a1ac63c7d3eebc63066d59730 (diff)
downloadlinux-stable-cc1afc1050a94be73f85c81889941f1fa7cda0e4.tar.gz
linux-stable-cc1afc1050a94be73f85c81889941f1fa7cda0e4.tar.bz2
linux-stable-cc1afc1050a94be73f85c81889941f1fa7cda0e4.zip
NFSv4.1 fix incorrect return value in copy_file_range
commit 0769663b4f580566ef6cdf366f3073dbe8022c39 upstream. According to the NFSv4.2 spec if the input and output file is the same file, operation should fail with EINVAL. However, linux copy_file_range() system call has no such restrictions. Therefore, in such case let's return EOPNOTSUPP and allow VFS to fallback to doing do_splice_direct(). Also when copy_file_range is called on an NFSv4.0 or 4.1 mount (ie., a server that doesn't support COPY functionality), we also need to return EOPNOTSUPP and fallback to a regular copy. Fixes xfstest generic/075, generic/091, generic/112, generic/263 for all NFSv4.x versions. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Cc: Yu Xu <xuyu@linux.alibaba.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions