Add bitmap helpers#127
Conversation
|
@Schamper Hopefully these changes are along the lines of what you suggested. |
|
I added some additional helpers, fixed some bugs and added some more tests. Let me know if these changes work for you or if you see any issues with them. |
|
LGTM, feel free to merge. Do you want us to update the ntfs and extfs pr's? Feel free to push the required changes (as well as other suggestions) over those branches if you want to. |
If you can, that would be appreciated 😄 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #127 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 28 29 +1
Lines 2029 2103 +74
=====================================
- Misses 2029 2103 +74
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Merging this PR will improve performance by 10.27%
Performance Changes
Tip Curious why this is faster? Comment Comparing |
Co-authored-by: Schamper <[email protected]>
Co-authored-by: Schamper <[email protected]>
Co-authored-by: Schamper <[email protected]>
This PR adds a function to convert a bitmap of free/used space into runlists.
Filesystems such as NTFS and EXTFS record which parts of the filesystem are allocated/unallocated via bitmaps where a block on the filesystem is represented by a bit. Distinguishing which parts of the filesystem are in active use and which parts are not can be useful for things like scraping.