[BUG] Retained imported file aliases miss committed growth #15
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#15
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
Growing an imported FAT-family file updates the writer's handle but leaves other retained handles with old allocation information. A size query through an acquired handle can then reject the provider's own successful write as a stale observation.
Reproduction
Create a file on the fixture medium without an EriX metadata catalog. Keep its writable handle, acquire a second handle to the same directory entry, then write
freshthrough the writer. Query the acquired handle's size and read the file through both handles.The maintained reproduction runs on FAT and exFAT:
Expected and actual behavior
The acquired handle must report a length of five bytes, and the writer must read
fresh. The affected candidate-size response returnsIPC_RESULT_RETRY(6) instead ofIPC_RESULT_OK(0). The refresh code updates the writer and handles sharing a nonzero catalog serial; imported aliases have no catalog serial and keep stale allocation and length fields.Environment and identity
Affected: Fatd 21102ceb. Host fixtures supply writable FAT12 and exFAT media and keep both handles alive.
Evidence and prior checks
The fix matches imported aliases by the retained mount, entry location, and object kind. The FAT and exFAT size/read controls pass in CI run 288.
Tracking
Related: directory growth, Fatd PR 3, Phase 6. This report concerns imported file aliases; directory growth has separate handling.
Imported file aliases now refresh from their retained mount and entry identity after committed growth. Fixed in this commit.