Add filesystem allocation support - #1742
Open
JSCU-CNI wants to merge 2 commits into
Open
Conversation
Contributor
Author
|
@Schamper and other reviewers, any chance you can fast-track the review of this PR, as well as fox-it/dissect.extfs#52 and fox-it/dissect.ntfs#58? The dependency-chain gives us quite a headache and prevents us from building on top of this. If you think it will be a while that's also okay but then we know we'll have to work around it for now. |
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.
This pull requests adds support for distinguishing which parts of a filesystem are in use and which ones are not.
Filesystemclasses can implement a few functions that yield unallocated or allocated streams, or a tuple containing one stream for each.The PR includes implementations of these functions for NTFS and EXTFS. They depend on functionality added in fox-it/dissect.ntfs#58 and fox-it/dissect.extfs#52 which themselves depend on fox-it/dissect.util#127 .
We have added one small extension to
target-mountto expose the different streams when filesystems support it.In the future we hope more scraping functionality can use the distinction between the allocated/unallocated space. In particular we were thinking about #1329. It would be nice to have one function that can assemble streams for scraping while taking some preferences into account (in this case, allocated only, unallocated only, or don't care).
create_streamsseems to be a good candidate.