summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2016-10-26 22:34:01 +0300
committerMiklos Szeredi <mszeredi@redhat.com>2016-12-16 11:02:54 +0100
commitb335e9d9944d9c66cdaadc5e295cc845c31e40a0 (patch)
tree5bb3e91b25ab88eac7694e84561d81c51ba0aba8 /fs/overlayfs
parent031a072a0b8ac2646def77aa310a95016c884bb0 (diff)
downloadlinux-b335e9d9944d9c66cdaadc5e295cc845c31e40a0.tar.bz2
vfs: fix vfs_clone_file_range() for overlayfs files
With overlayfs, it is wrong to compare file_inode(inode)->i_sb of regular files with those of non-regular files, because the former reference the real (upper/lower) sb and the latter reference the overlayfs sb. Move the test for same super block after the sanity tests for clone range of directory and non-regular file. This change fixes xfstest generic/157, which returned EXDEV instead of EISDIR/EINVAL in the following test cases over overlayfs: echo "Try to reflink a dir" _reflink_range $testdir1/dir1 0 $testdir1/file2 0 $blksz echo "Try to reflink a device" _reflink_range $testdir1/dev1 0 $testdir1/file2 0 $blksz Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/overlayfs')
0 files changed, 0 insertions, 0 deletions