Repository navigation
docs(design): plan Windows FSCTL_SET_ZERO_DATA hole-punching (#2131) - #3924
Merged
Merged
Conversation
Plans an NTFS sparse hole-punching backend so the Windows path matches Linux fallocate(PUNCH_HOLE) and macOS F_PUNCHHOLE instead of writing physical zeros. Defines PlatformSparse trait shape (set_sparse_attr + punch_hole), volume/alignment risks, and ties into the sparse-writer Decorator tracked in #2132.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…3924) Plans an NTFS sparse hole-punching backend so the Windows path matches Linux fallocate(PUNCH_HOLE) and macOS F_PUNCHHOLE instead of writing physical zeros. Defines PlatformSparse trait shape (set_sparse_attr + punch_hole), volume/alignment risks, and ties into the sparse-writer Decorator tracked in #2132.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…3924) Plans an NTFS sparse hole-punching backend so the Windows path matches Linux fallocate(PUNCH_HOLE) and macOS F_PUNCHHOLE instead of writing physical zeros. Defines PlatformSparse trait shape (set_sparse_attr + punch_hole), volume/alignment risks, and ties into the sparse-writer Decorator tracked in #2132.
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
docs/design/windows-fsctl-set-zero-data.mdoutlining theWindows backend for sparse hole punching:
FSCTL_SET_ZERO_DATAvia
DeviceIoControlwithFILE_ZERO_DATA_INFORMATION.fallocate(PUNCH_HOLE)on Linux,F_PUNCHHOLEon macOS) and the NTFS-only pre-conditions(
FSCTL_SET_SPARSE, cluster alignment, FAT32/exFAT no-op).PlatformSparsetrait shape withset_sparse_attrand
punch_hole, integrated either by extendingPlatformCopyor as a sibling trait used by the sparse-writer Decorator
(Document parity artifacts and automation #2132). Cross-refs the
--sparse-detect=work in Derive Default for PanicState #1828.Test plan
windowscrate (microsoft/windows-rs) is thepreferred binding (per project unsafe policy).