[BUG] FAT status invents timezone and change-time evidence #7
Labels
No labels
alpha-1
bug
ci
docs
duplicate
enhancement
help wanted
invalid
performance
phase-6
question
refactor
security
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
erix/fatd#7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
FAT-family status invents timestamp evidence in two places: exFAT decodes an unavailable UTC offset as a known zero offset, and legacy status copies modification time into metadata-change time although neither format records POSIX ctime. Untimestamped exFAT creation also marks its calendar placeholder as known UTC.
Reproduction
At Fatd
f30feafea342fa41f4d4ac5136190c3b644b0bbd, inspectutc_offset_secondsandnew_for_nodeinsrc/exfat/metadata.rs, andStatResult::from_nodeinsrc/store.rs. A valid local calendar value with offset byte zero becomes a UTC timestamp. The legacy change-time result always copies the modification value. No clock or timezone evidence accompanies either conversion.Original literal entry controls will distinguish valid UTC zero, positive and negative offsets, unavailable UTC and invalid encodings. Provider controls will observe the original retained entry, preserve media bytes and verify independent time availability. This is a source-derived reproduction; tests, builds, lint checks, VM/profiler execution and CI observation remain deferred by user instruction.
Expected and actual behavior
Expected: retain each timestamp's calendar value and actual UTC availability independently. FAT's offset-free calendar fields and exFAT's unavailable-offset form must not assert a UTC instant without explicit timezone policy. Known exFAT offsets yield recorded UTC observations with their real storage precision. Birth time and modification time must never supply ctime. Legacy replies use their documented unknown-zero representation for unavailable fields; the source-qualified interface uses explicit Unknown observations.
Actual: unavailable timezone evidence becomes a successful UTC interpretation, and ctime is inferred from mtime. New untimestamped exFAT entries advertise the placeholder as known UTC. Native source-qualified snapshots also discard valid independently available exFAT times.
Environment and identity
f30feafea342fa41f4d4ac5136190c3b644b0bbd; Integration graph:6299bffb7a69f46e87b7504651025b6b7c0f641b.Evidence and prior checks
The source branches above directly select assumed UTC and copied ctime. The repair retains local values for format-preserving rename and metadata updates, while exposing only independently supported UTC observations. It uses original Rust implementation and independent entry literals; no external implementation code is imported. Format semantics follow the Microsoft exFAT specification.
Tracking
Related status and directory work, Fatd review and phase completion. Close after repair and coherent signed publication under the testing waiver. Complete FAT POSIX identity/ownership policy and pipe/stream status remain unfinished requirements.
Original FAT-family timestamp evidence — 30 September 2026
Unknown offset bits cannot invent UTC.
Full compatibility status still refuses incomplete required metadata.
Existing date quantization assertions and actual VM/image checks remain and now require truthful UTC availability.
The full status/directory feature remains open for complete FAT metadata, pipe/stream status and remaining full-item integration. Both full EriX guest generations and external Rust/LLVM rebuilding inside EriX remain required and unperformed.
Related records and contracts
erikinkinen referenced this issue from erix/posixd2026-09-30 17:52:06 +02:00
erikinkinen referenced this issue from erix/docs2026-09-30 18:13:47 +02:00
erikinkinen referenced this issue2026-09-30 18:13:48 +02:00
erikinkinen referenced this issue from erix/integration2026-09-30 18:13:49 +02:00
erikinkinen referenced this issue from erix/rootd2026-09-30 18:13:51 +02:00