Skip to content

Re-vendor qnxprobe 1.20, so a scoped carve works on a real disk - #49

Merged
abrignoni merged 2 commits into
mainfrom
chore/revendor-qnxprobe-1.19
Sep 10, 2026
Merged

abrignoni merged 2 commits into
mainfrom
chore/revendor-qnxprobe-1.19

Conversation

@abrignoni

@abrignoni abrignoni commented Sep 10, 2026 •

Copy link
Copy Markdown
Owner

Takes qnxprobe 1.20 into gleapp/vendor/, which gives NTFS, FAT32 and exFAT a free_extents().

--unallocated-only asks 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.

  • 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, since APFS and HFS+ report no free space.
  • The fallback test asserted that a FAT volume drops the scope, which held 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.
  • Corrects scoped-carve figures in the rules file and the _unclaimed_space docstring that did not reproduce against either image.

Verbatim copy, manifest updated, check_vendored.py clean against the upstream checkout.

🤖 Generated with Claude Code

abrignoni and others added 2 commits September 9, 2026 21:03
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]>
@abrignoni abrignoni changed the title Re-vendor qnxprobe 1.19 Re-vendor qnxprobe 1.20, so a scoped carve works on a real disk Sep 10, 2026
@abrignoni
abrignoni merged commit 1d95078 into main Sep 10, 2026
8 checks passed
@abrignoni
abrignoni deleted the chore/revendor-qnxprobe-1.19 branch September 10, 2026 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant