| ▲ | cozzyd an hour ago | |
can't most applications ... write to a temp file and rename? Maybe that's not atomic on Widows? | ||
| ▲ | dezgeg 37 minutes ago | parent [-] | |
Using fsync() is still required to be correct in power-loss situation, as the filesystem can otherwise reorder the rename to happen before the temp file contents are persisted. It's harder problem than one'd think. | ||