Expand description
Atomic file write + rename helpers. All registry mutations route through these so readers never observe a half-written file.
Functions§
- rename_
atomic - Atomic rename. Used for retire/unretire (same-directory tree).
- write_
atomic - Write
bytestopathatomically: sibling temp file → fsync → rename over the target. Rename is atomic on every supported filesystem when source and destination live on the same volume, which is guaranteed here (sibling temp).