Skip to content
  • Amir Goldstein's avatar
    vfs: allow vfs_clone_file_range() across mount points · 913b86e9
    Amir Goldstein authored
    
    
    FICLONE/FICLONERANGE ioctls return -EXDEV if src and dest
    files are not on the same mount point.
    Practically, clone only requires that src and dest files
    are on the same file system.
    
    Move the check for same mount point to ioctl handler and keep
    only the check for same super block in the vfs helper.
    
    A following patch is going to use the vfs_clone_file_range()
    helper in overlayfs to copy up between lower and upper
    mount points on the same file system.
    
    Signed-off-by: default avatarAmir Goldstein <amir73il@gmail.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    913b86e9