RFR: 8264744: (fs) Use file cloning in Linux and macOS versions of FileChannel transfer and Files copy methods [v8]

Brian Burkhalter bpb at openjdk.org
Wed Aug 17 14:45:37 UTC 2022


On Wed, 17 Aug 2022 13:46:30 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> The main issue is that the macOS clonefile is forcing the patch to clone with file paths and this breaks the architecture where the source and target files are opened once.

Yes, this is annoying.

> One thing we could do is separate the update to FileChannelImpl.c to use copy_file_range to a separate issue. It doesn't need to be in this PR.

I agree with that.

> Another thing we could do is separate out the use of ioctl(FICLONE) on Linux. [...]

This will require more thought.

-------------

PR: https://git.openjdk.org/jdk/pull/9486


More information about the nio-dev mailing list