Skip to content

docs(fast_io): Windows CopyFileEx fast path status (#1414, #1749) - #4250

Merged
oferchen merged 1 commit into
masterfrom
docs/windows-copyfileex-audit-1414
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/windows-copyfileex-audit-1414

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

Audit findings

The Windows fast path is fully wired and tested:

  • crates/fast_io/src/copy_file_ex.rs - standalone safe wrapper try_copy_file_ex(src, dst) mirroring copy_file_range::copy_file_contents, with COPY_FILE_NO_BUFFERING above 4 MiB
  • crates/fast_io/src/platform_copy/dispatch.rs - Windows platform_copy_impl dispatch: ReFS reflink -> CopyFileExW -> std::fs::copy
  • crates/fast_io/src/platform_copy/types.rs - CopyMethod::CopyFileEx variant with Display impl
  • Tests - Windows-gated tests in both copy_file_ex.rs and platform_copy/tests.rs cover byte-exact copy, empty files, NTFS fallback, size-based dispatch, and the cross-platform Unsupported contract
  • Public surface - lib.rs re-exports CopyMethod, CopyResult, PlatformCopy, DefaultPlatformCopy

Test plan

  • CI fmt + clippy passes (docs-only change)
  • All platform matrices pass unchanged

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
oferchen merged commit 697a0fa into master May 17, 2026
8 checks passed
@oferchen
oferchen deleted the docs/windows-copyfileex-audit-1414 branch May 17, 2026 19:59
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 17, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant