Skip to content

Carve the space outside every volume, and all of an image with no volume - #226

Merged
abrignoni merged 2 commits into
mainfrom
fix/carve-scope-no-volumes
Sep 28, 2026
Merged

abrignoni merged 2 commits into
mainfrom
fix/carve-scope-no-volumes

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Makes an unallocated-only carve read the space no volume claims, including space outside every volume.

  • _unclaimed_space returned only the runs each volume reports free. An image with no volume the reader can name got an empty list, so the gallery's carve (always scoped) found nothing. On aff-enc-inplace-cert.aff through the web API with carve on: 0 carved rows on main, 6 with this change.
  • An image with no volume now scopes to the whole image. None still means a volume could not answer.
  • The partition-table area, the Microsoft reserved partition and space past the last partition are in the scope too. That adds 17 to 24 MiB per Windows corpus disk and 128 MiB on macOS-BigSur, and 79 carvable PNGs sit in PC-MUS-001's reserved partition.
  • The scoped carve reports progress, and the case meta says "1 run" instead of "1 runs".

Tests cover a volume-less E01, a partitioned image with pictures outside its volume, and the carved count on both web ingest tests. Each fails on main. Manual, help and the cross-platform rules are updated, with the scope table re-measured.

🤖 Generated with Claude Code

abrignoni and others added 2 commits September 28, 2026 00:12
_unclaimed_space returned only the runs each volume reports free. An image
with no volume the reader can name therefore scoped to an empty list, the
answer for a disk whose volumes claim every byte, and the gallery's carve
(always unallocated-only) read nothing: 0 of 3 pictures in a volume-less
E01 through the web API, where an unscoped carve found all 3, with the case
meta recording "0 runs of space no volume claims, 0 bytes".

The scope now also covers the space outside every named volume: the start
of a partitioned disk, a partition whose filesystem is not recognised (the
Microsoft reserved partition), and the tail. An image with no volume scopes
to the whole image. None still means a volume could not answer. Touching
runs are joined, the scoped carve reports progress, and the meta says
"1 run" rather than "1 runs".

On the corpus disks this adds 17 to 24 MiB per Windows disk and 128 MiB on
macOS-BigSur; PC-MUS-001's reserved partition holds 79 carvable PNGs the
old scope never read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The web test for aff-enc-inplace-cert.aff passes carve=true on a disk with
no filesystem and never checked what the carve found. It now requires the
six pictures; on main it finds none.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni enabled auto-merge September 28, 2026 04:16
@abrignoni
abrignoni merged commit 92463dd into main Sep 28, 2026
8 checks passed
@abrignoni
abrignoni deleted the fix/carve-scope-no-volumes branch September 28, 2026 04:33
@abrignoni abrignoni mentioned this pull request Sep 28, 2026
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