Skip to content

docs(design): Windows FSCTL_SET_ZERO_DATA hole-punching (#2131) - #4252

Merged
oferchen merged 1 commit into
masterfrom
docs/windows-fsctl-set-zero-data-2131
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/windows-fsctl-set-zero-data-2131

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Expands docs/design/windows-fsctl-set-zero-data.md from a sketch
    into a full design note for docs: add initial cli parity matrix #2131.
  • Documents the current sparse-write path (SIMD u128 zero-run
    detector, SparseWriter / SparseWriteState, single
    seek-per-zero-run invariant) that the Windows backend will plug into.
  • Covers the Linux fallocate(PUNCH_HOLE | KEEP_SIZE) baseline, the
    macOS F_PUNCHHOLE analogue (for symmetry, not implemented here),
    and the Windows FSCTL_SET_ZERO_DATA ioctl with its
    FSCTL_SET_SPARSE prerequisite.
  • Spells out failure modes (non-NTFS volumes, missing sparse attr,
    permissions, cluster alignment, compressed files, cached reads) and
    the expected performance benefit on sparse-source transfers.
  • Issues a clear recommendation (implement) with explicit defer and
    reject triggers, and a five-step implementation plan rooted in the
    existing DeviceIoControl wrapper in platform_copy/dispatch.rs.

Test plan

  • cargo fmt --all -- --check
  • Visual review of docs/design/windows-fsctl-set-zero-data.md

Rewrites the design note for #2131 to document the full sparse-write
path it replaces, including the SIMD u128 zero-run detector, the
SparseWriter / SparseWriteState pipeline, and the Linux fallocate
ladder it mirrors. Adds the macOS F_PUNCHHOLE analogue for symmetry,
spells out NTFS pre-conditions and failure modes, lists the
recommendation with explicit defer / reject triggers, and outlines a
five-step implementation plan rooted in the existing
DeviceIoControl wrapper in platform_copy/dispatch.rs.
@oferchen
oferchen merged commit cc80928 into master May 17, 2026
8 checks passed
@oferchen
oferchen deleted the docs/windows-fsctl-set-zero-data-2131 branch May 17, 2026 20:12
@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
…4252)

Rewrites the design note for #2131 to document the full sparse-write
path it replaces, including the SIMD u128 zero-run detector, the
SparseWriter / SparseWriteState pipeline, and the Linux fallocate
ladder it mirrors. Adds the macOS F_PUNCHHOLE analogue for symmetry,
spells out NTFS pre-conditions and failure modes, lists the
recommendation with explicit defer / reject triggers, and outlines a
five-step implementation plan rooted in the existing
DeviceIoControl wrapper in platform_copy/dispatch.rs.
oferchen added a commit that referenced this pull request May 18, 2026
…4252)

Rewrites the design note for #2131 to document the full sparse-write
path it replaces, including the SIMD u128 zero-run detector, the
SparseWriter / SparseWriteState pipeline, and the Linux fallocate
ladder it mirrors. Adds the macOS F_PUNCHHOLE analogue for symmetry,
spells out NTFS pre-conditions and failure modes, lists the
recommendation with explicit defer / reject triggers, and outlines a
five-step implementation plan rooted in the existing
DeviceIoControl wrapper in platform_copy/dispatch.rs.
oferchen added a commit that referenced this pull request Aug 24, 2026
…4252)

Rewrites the design note for #2131 to document the full sparse-write
path it replaces, including the SIMD u128 zero-run detector, the
SparseWriter / SparseWriteState pipeline, and the Linux fallocate
ladder it mirrors. Adds the macOS F_PUNCHHOLE analogue for symmetry,
spells out NTFS pre-conditions and failure modes, lists the
recommendation with explicit defer / reject triggers, and outlines a
five-step implementation plan rooted in the existing
DeviceIoControl wrapper in platform_copy/dispatch.rs.
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