Expand description
Atomic on-disk commit for a staged save token.
[save::resolve_commit] is filesystem-free; this module supplies the real source re-read and a
crash-safe replace (write temp sibling, fsync, rename). Path authorization is the caller’s job.
Enums§
Functions§
- commit_
pdf_ save - Consumes
token, re-checks the on-disk source for same-path saves, and atomically writes the verified candidate totarget(or back to the source path whenNone). - write_
atomic - Writes
bytestotargetatomically: a temp file in the same directory is fsynced and then renamed over the target, so readers observe either the old or the new file, never a mix.