On 20.02.2018 17:50, Hristo Venev wrote: > What is the problem with cloning files between different (vfs)mounts of > the same filesystem? >
The "problem" is not really a problem, but rather a well-imposed restriction: >From http://man7.org/linux/man-pages/man2/ioctl_ficlonerange.2.html "Both files must reside within the same filesystem." And as a matter of fact this is enforced in the generic vfs_clone_file_range. Of course if we were to do this across filesystem then we'd have all the problems associated with not being able to ensure atomicity of operations. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html