Repository navigation
Re-vendor qnxprobe 1.20, so a scoped carve works on a real disk - #49
Merged
Merged
Conversation
1.19 gives an NTFS volume a free_extents(), which is what --unallocated-only asks each volume for. Both Windows acquisitions on hand still fall back to a whole-image carve, because each carries a FAT32 EFI system partition beside its NTFS volumes and FAT reports no free space, so the scope is dropped for the whole image. Their NTFS volumes report 176.9 GiB free of 238.5 and 176.2 GiB of 232.9. Replaces the scoped-carve figures in the rules file and in the _unclaimed_space docstring, which quoted a run that could not be reproduced against either image. Co-Authored-By: Claude Opus 5 <[email protected]>
1.20 gives FAT32 and exFAT a free_extents(). Every Windows disk carries a 0.2 GiB FAT32 EFI system partition beside its NTFS volumes, and one volume that cannot answer drops the scope for the whole image, so until now --unallocated-only always fell back to a whole-image carve. Measured through _unclaimed_space() itself: 177.1 GiB of 238.5 in 3,500 runs and 176.3 GiB of 232.9 in 1,372 runs, both in about half a second. A Mac image is still scanned whole, because APFS and HFS+ report no free space. The fallback test asserted that a FAT volume drops the scope, which was true only because FAT was mute. It now asserts the scope is real and that scoping skips the live file the walk already named, and it goes red against the previously vendored copy. A separate test keeps the end-to-end fallback covered with a volume that genuinely cannot answer. Co-Authored-By: Claude Opus 5 <[email protected]>
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.
Takes qnxprobe 1.20 into
gleapp/vendor/, which gives NTFS, FAT32 and exFAT afree_extents().--unallocated-onlyasks every volume on the disk and drops the scope if any one cannot answer. Every Windows disk carries a 0.2 GiB FAT32 EFI system partition beside its NTFS volumes, so until FAT could answer the scope was always dropped and a whole-image carve was what ran._unclaimed_space()itself: 177.1 GiB of 238.5 in 3,500 runs, and 176.3 GiB of 232.9 in 1,372 runs, both in about half a second. A Mac image is still scanned whole, since APFS and HFS+ report no free space._unclaimed_spacedocstring that did not reproduce against either image.Verbatim copy, manifest updated,
check_vendored.pyclean against the upstream checkout.🤖 Generated with Claude Code