Skip to content

docs(design): plan Windows ReFS reflink via FSCTL_DUPLICATE_EXTENTS (#1389) - #3905

Merged
oferchen merged 1 commit into
masterfrom
design/windows-refs-reflink
May 7, 2026
Merged

oferchen merged 1 commit into
masterfrom
design/windows-refs-reflink

Conversation

@oferchen

@oferchen oferchen commented May 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Concise design note for the Windows ReFS reflink fast path tracked in Restrict CI testing to Linux and fix packaging artifacts #1389.
  • Documents current fast_io reflink dispatch (Linux FICLONE, macOS clonefile, Windows CopyFileEx fallback) and the planned ReFS-only FSCTL_DUPLICATE_EXTENTS_TO_FILE path.
  • Covers detection via GetVolumeInformationW with OnceLock caching, the ReFS -> CopyFileEx -> std::fs::copy fallback chain, alignment and source-handle risks, and the windows crate binding policy that keeps fast_io public APIs safe.

Test plan

  • CI: docs-only change, expect fmt/clippy/nextest matrix to remain green.
  • Reviewer: confirm doc length stays under 130 lines and references match crates/fast_io/src/platform_copy/dispatch.rs and crates/fast_io/src/refs_detect.rs.

…1389)

Concise plan for the Windows reflink fast path: where the dispatch
lives, the FSCTL_DUPLICATE_EXTENTS_TO_FILE call shape, ReFS detection
with OnceLock caching, the fallback chain to CopyFileEx and
std::fs::copy, alignment and source-handle risks, and the windows-rs
binding policy keeping fast_io's public API safe.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label May 7, 2026
@oferchen
oferchen merged commit ed8ecce into master May 7, 2026
8 checks passed
@oferchen
oferchen deleted the design/windows-refs-reflink branch May 8, 2026 03:47
oferchen added a commit that referenced this pull request May 18, 2026
…1389) (#3905)

Concise plan for the Windows reflink fast path: where the dispatch
lives, the FSCTL_DUPLICATE_EXTENTS_TO_FILE call shape, ReFS detection
with OnceLock caching, the fallback chain to CopyFileEx and
std::fs::copy, alignment and source-handle risks, and the windows-rs
binding policy keeping fast_io's public API safe.
oferchen added a commit that referenced this pull request Aug 24, 2026
…1389) (#3905)

Concise plan for the Windows reflink fast path: where the dispatch
lives, the FSCTL_DUPLICATE_EXTENTS_TO_FILE call shape, ReFS detection
with OnceLock caching, the fallback chain to CopyFileEx and
std::fs::copy, alignment and source-handle risks, and the windows-rs
binding policy keeping fast_io's public API safe.
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