ntfs-du: find large files on NTFS partitions on Windows#560
Open
clarkb7 wants to merge 7 commits into
Open
Conversation
clarkb7
force-pushed
the
branden.clark/ntfs-du
branch
from
July 20, 2026 20:41
360aff1 to
5937369
Compare
clarkb7
marked this pull request as ready for review
July 20, 2026 21:47
clarkb7
requested review from
AlexandreYang,
astuyve,
julesmcrt,
matt-dz,
thieman and
val06
as code owners
July 20, 2026 21:47
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.
What does this PR do?
Add
ntfs-du, a Windows only built-in that can quickly find large files to provide narrow down where to free up disk space.Add
platformBuiltins(), registers platform specific built-ins and keeps the commands out of the help list on other platforms.Motivation
https://datadoghq.atlassian.net/browse/WINA-2573
A Windows-only complement to the
dubuilt-in, which is too slow on Windows to scan an entire drive.ntfs-dureads the NTFS MFT directly which can process a terabyte drive in seconds.trade-offs:
Testing
Includes unit tests, pentests, and fuzz tests for the NTFS MFT parser.
Includes integration tests, not run by default because they require Administrator privileges and a NTFS partition, host-based E2E tests will be needed.
Does NOT include scenario tests, because those are currently run on all platforms and this is Windows only, and the command has additional requirements: Administrator privileges and a NTFS partition
Checklist