RFR: 8264744: (fs) Use file cloning in Linux version of Files::copy method [v10]

Brian Burkhalter bpb at openjdk.org
Fri Sep 2 00:26:31 UTC 2022


> 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 pull request now contains 14 commits:

 - Merge
 - 8264744: Refactor UnixCopyFile::copyFile into UnixFileSystem; refactor OS-specific code to {Bsd,Linux}FileSystem
 - Merge
 - 8264744: Add mode to clone() and other requested changes
 - 8264744: Refactor {Bsd,Linux}CopyFile::clone into {Bsd,Linux}FileSystem::clone
 - Merge
 - 8264744: Remove CloneFile classes; refactor to use {Bsd,Linux}CopyFile
 - Merge
 - 8264744: Fix typo desintation -> destination
 - 8264744: Refactor into UnixCopyFile hierarchy
 - ... and 4 more: https://git.openjdk.org/jdk/compare/0a4d0cee...4260d000

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

Changes: https://git.openjdk.org/jdk/pull/9486/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9486&range=09
  Stats: 243 lines in 9 files changed: 223 ins; 14 del; 6 mod
  Patch: https://git.openjdk.org/jdk/pull/9486.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9486/head:pull/9486

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


More information about the nio-dev mailing list