3 ms·
They are if you perform the correct sequence of fsync operations on both the file and the directories, and use a file system which is correctly implemented.
by jclulow 6y ago
They are if you perform the correct sequence of fsync operations on both the file and the directories, and use a file system which is correctly implemented.
- chrismorgan 6y agoRenames aren’t atomic on crash.
- badsectoracula 6y agoWhat crash? The article linked above never explains that part, it only assumes that it will happen. From the code it sounds as if the crash can happen in the OS itself (but then the entire kernel will crash). At that point things are completely outside your control and you might as well running on broken hardware.