Repository navigation
docs(fast_io): Windows CopyFileEx fast path status (#1414, #1749) - #4250
Merged
Merged
Conversation
Record the shipped state of the Windows CopyFileExW fast path and its parity with the Linux copy_file_range analogue. Confirms both issues are complete: standalone safe wrapper in copy_file_ex.rs, full dispatch chain (ReFS reflink -> CopyFileExW -> std::fs::copy) in platform_copy, and Windows-gated tests covering NTFS fallback, size-based dispatch, and byte-exact copy semantics.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Record the shipped state of the Windows CopyFileExW fast path and its parity with the Linux copy_file_range analogue. Confirms both issues are complete: standalone safe wrapper in copy_file_ex.rs, full dispatch chain (ReFS reflink -> CopyFileExW -> std::fs::copy) in platform_copy, and Windows-gated tests covering NTFS fallback, size-based dispatch, and byte-exact copy semantics.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Record the shipped state of the Windows CopyFileExW fast path and its parity with the Linux copy_file_range analogue. Confirms both issues are complete: standalone safe wrapper in copy_file_ex.rs, full dispatch chain (ReFS reflink -> CopyFileExW -> std::fs::copy) in platform_copy, and Windows-gated tests covering NTFS fallback, size-based dispatch, and byte-exact copy semantics.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Record the shipped state of the Windows CopyFileExW fast path and its parity with the Linux copy_file_range analogue. Confirms both issues are complete: standalone safe wrapper in copy_file_ex.rs, full dispatch chain (ReFS reflink -> CopyFileExW -> std::fs::copy) in platform_copy, and Windows-gated tests covering NTFS fallback, size-based dispatch, and byte-exact copy semantics.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CopyFileExWfast path and confirms parity with the Linuxcopy_file_rangeanalogueCOPY_FILE_RESTARTABLE,CopyFile2,windows-rsFFI migration)Audit findings
The Windows fast path is fully wired and tested:
crates/fast_io/src/copy_file_ex.rs- standalone safe wrappertry_copy_file_ex(src, dst)mirroringcopy_file_range::copy_file_contents, withCOPY_FILE_NO_BUFFERINGabove 4 MiBcrates/fast_io/src/platform_copy/dispatch.rs- Windowsplatform_copy_impldispatch: ReFS reflink ->CopyFileExW->std::fs::copycrates/fast_io/src/platform_copy/types.rs-CopyMethod::CopyFileExvariant withDisplayimplcopy_file_ex.rsandplatform_copy/tests.rscover byte-exact copy, empty files, NTFS fallback, size-based dispatch, and the cross-platformUnsupportedcontractlib.rsre-exportsCopyMethod,CopyResult,PlatformCopy,DefaultPlatformCopyTest plan