Re:POSIX v. reality: A position on O_PONIES
by aidenn0 on Sunday November 26, 2023 @05:50PM
(#38425894)
From another fork in this thread:
> ...the operation we wish to be atomic is 'replacing the mapping path A->data X with path A->data Y'.
The ordering makes this operation atomic! The fact that it might leave another file around (if a crash happens) is okay.
Re:POSIX v. reality: A position on O_PONIES
by throwaway09223 on Sunday November 26, 2023 @08:00PM
(#38426888)
What is it atomic with respect to?
No, it doesn't. I think we're reaching the heart of the disagreement here - around what "atomic" means.
Atomic means indivisible. It means that other things cannot happen at the same time - that the individual (possibly ordered) steps of an operation cannot be observed while in progress.
This is why it's absolutely nonsense to talk about atomicity across a crash.
The fundamental design of unix files and memory preclude this. It can't be done.