[ROBUSTNESS] Implement atomic metadata writes (Write-Rename pattern) #17
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
geomind_code/my_fs#17
Loading…
Add table
Add a link
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?
The
meta::Writerpresently writes directly to the destination flist file.Risk: A system crash or process failure during a write operation will leave a corrupted, partial
.flfile on disk.Proposed Fix: Implement a pattern where the writer writes to a temporary file (e.g.,
.fl.tmp) and performs an atomic rename to the final destination only after a successful flush.