Skip to content

Read NTFS and APFS images in one pass, with qnxprobe 1.30 - #219

Merged
abrignoni merged 1 commit into
mainfrom
feat/qnxprobe-1-30-one-pass-listing
Sep 18, 2026
Merged

abrignoni merged 1 commit into
mainfrom
feat/qnxprobe-1-30-one-pass-listing

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Reads NTFS and APFS images in one pass with qnxprobe 1.30, instead of one directory at a time.

  • NTFS is listed from one pass over $MFT, APFS from one pass over its catalog. Every other filesystem is walked as before.
  • The seeker keeps its own traversal order, since that is the order artifacts get their files in.
  • Re-vendors qnxprobe 1.29 -> 1.30 and adds an APFS fixture and tests. raw_image.py stays byte-identical across the five cores.

Listing a 32 GB macOS E01 went from 139.8 s to 8.5 s, and a full DLEAPP run on it from 226.7 s to 85.7 s, with identical artifact tables. On two Windows acquisitions the new route lists 3 more files: live files whose directory index entry is stale.

🤖 Generated with Claude Code

The raw image seeker walked every volume one directory at a time. On NTFS
that reads each directory's index and reaches the MFT records in directory
order, and on APFS it searches the catalog once per lookup, parsing the same
leaf again for every entry in it.

qnxprobe 1.30 reads both in one pass: NTFS from its $MFT and APFS from the
catalog's leaves. The seeker now takes that route and keeps its own
traversal, depth first with each directory's children sorted by name,
because the member list is the order search() hands an artifact its files
in. Every other filesystem is walked as before, and so is an NTFS volume
whose one-pass listing fails.

Old seeker against new, on the same acquisitions:

    macOS Big Sur E01, 32 GB      139.8 s -> 8.5 s
    Windows 11 E01, 49 GB           9.7 s -> 5.5 s
    Windows 10 E01, 7.4 GB          4.3 s -> 2.3 s

The member lists are identical, order included, on every fixture, on the
macOS acquisition and on the 7.4 GB Windows 10 one. On two other Windows
acquisitions the one-pass route lists 3 more files, where a directory's
index holds an entry for the name at an older sequence number than the
file's own record: the directory walk rightly refuses the entry and so
loses a file whose record is live. On one of them a fourth path resolves
to a different record.

A full DLEAPP run on three acquisitions produced identical artifact
tables, and the macOS one went from 226.7 s to 85.7 s.

Re-vendors qnxprobe 1.29 -> 1.30 and adds the APFS fixture, which the
seeker had no test for.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@abrignoni
abrignoni merged commit 7158163 into main Sep 18, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/qnxprobe-1-30-one-pass-listing branch September 19, 2026 13:32
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