← Back to context

Comment by EugeneOZ

4 years ago

After reading this comment I’m not so sure about that: https://news.ycombinator.com/item?id=30371181

That comment is about the semantics of OS APIs; filesystems are designed not to corrupt themselves in case of hard shutdown, and this is true as long as the underlying storage is well-behaved (e.g. honors flush requests). Databases on macOS already use F_FULLFSYNC (if they noticed this issue) to provide those guarantees. On Linux they just use fsync().