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

Andrey Turbanov aturbanov at openjdk.org
Wed Aug 3 06:23:45 UTC 2022


On Tue, 2 Aug 2022 23:49:52 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Add file cloning to `java.nio.channels.FileChannel::transferTo` and `java.nio.file.Files.copy(Path,Path)`.
>
> Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains five additional commits since the last revision:
> 
>  - 8264744: Refactor into UnixCopyFile hierarchy
>  - Merge
>  - 8264744: Address review comments aside from refactoring
>  - 8264744: Refactor into provider+dispatcher to reduce amount of JNI code
>  - 8264744: (fc, fs) Support file cloning in Unix versions of FileChannel transfer and Files copy methods

src/java.base/aix/classes/sun/nio/fs/CloneFile.java line 46:

> 44:      *
> 45:      * @param src the path of the source file
> 46:      * @param dst the path of the desintation file (clone)

typo `desintation`. It seems it was copied in all CloneFile.java files.

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

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


More information about the nio-dev mailing list