Skip to content

Carry a FAT volume's recorded times to the examiner, as stored - #52

Merged
abrignoni merged 1 commit into
mainfrom
feat/fat-recorded-times-column
Sep 10, 2026
Merged

abrignoni merged 1 commit into
mainfrom
feat/fat-recorded-times-column

Conversation

@abrignoni

@abrignoni abrignoni commented Sep 10, 2026 •

Copy link
Copy Markdown
Owner

A file walked out of FAT or exFAT had no time at all on its row. Those filesystems keep a wall-clock reading and no zone, so there is no instant to put in mtime without inventing a zone, and a naive datetime handed to a consumer gets coerced to UTC.

The readings now travel as text. qnxprobe 1.22 hands them to collect(), the walk stores them as JSON in a new files.recorded_times, and the report offers them as "Recorded (as stored, no zone)".

  • mtime stays empty for such a volume, deliberately, so nothing downstream can read an instant that was never recorded.
  • A reading an entry does not hold is absent rather than present and empty.
  • FAT's last-access field is a date with no time of day, so it is carried as a date rather than as midnight.
  • exFAT's per-timestamp UTC offset is shown as stored rather than applied. On the one exFAT volume measured, a file written at 21:09:09 on a machine at UTC-0400 is stored as 2026-09-10 05:09:08 with an offset of +04:00. That pair resolves to the right instant, but the reading is not the machine's local clock and the offset is the negation of its zone, so resolving it would assert more than the evidence carries.

Schema 13. The column is added by migration and existing rows survive it, which a test checks by dropping the column from a case, marking it version 12 and reopening it.

The fixture declares each file's time, so the expected values do not come from the decoder under test: (2023, 6, 1, 12, 30, 0) goes in and 2023-06-01 12:30:00 comes out. Four new tests, each proven red by breaking the change four ways: not asking collect for the readings, not storing them, filling mtime after all, and keeping empty readings instead of dropping them.

Read against the FAT32 EFI system partitions of two real acquisitions the readings decode clean: 196 and 207 paths carrying them, years 2022 to 2026, none malformed, and unlike the fixture those volumes populate created and accessed as well. The column itself is exercised by the fixture rather than by them, because the walk registers media and an EFI system partition holds none. No FAT or exFAT volume in the corpus carries media.

Also re-vendors qnxprobe 1.22. Verbatim copy, manifest at the merge commit, check_vendored.py clean. Suite results unchanged from main.

🤖 Generated with Claude Code

A file walked out of FAT or exFAT had no time at all on its row. Those
filesystems keep a wall-clock reading and no zone, so there is no instant
to put in mtime without inventing a zone, and a naive datetime handed to a
consumer gets coerced to UTC.

The readings now travel as text. qnxprobe 1.22 hands them to collect(), the
walk stores them as JSON in a new files.recorded_times, and the report
offers them as "Recorded (as stored, no zone)". mtime stays empty for such
a volume, deliberately, so nothing downstream can read an instant that was
never recorded. A reading an entry does not hold is absent rather than
empty.

exFAT stores a UTC offset per timestamp and it is shown as stored rather
than applied. On the one exFAT volume measured, a file written at 21:09:09
on a machine at UTC-0400 is stored as 2026-09-10 05:09:08 with an offset of
+04:00. That pair resolves to the right instant, but the reading is not the
machine's local clock and the offset is the negation of its zone, so
resolving it would assert more than the evidence carries.

Schema 13. The column is added by migration and existing rows survive it,
which the tests check by dropping the column from a case and reopening it.

Read against the FAT32 EFI system partitions of two real acquisitions, the
readings decode clean: 196 and 207 paths carrying them, years 2022 to 2026,
none malformed, and unlike the test fixture those volumes populate created
and accessed as well. The column itself is exercised by the fixture rather
than by them, because the walk registers media and an EFI system partition
holds none.

Co-Authored-By: Claude Opus 5 <[email protected]>
@abrignoni
abrignoni force-pushed the feat/fat-recorded-times-column branch from 5819932 to db4fab4 Compare September 10, 2026 03:12
@abrignoni
abrignoni merged commit 3925949 into main Sep 10, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/fat-recorded-times-column branch September 10, 2026 03:19
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