News for hackers. Stuff that matters.
Re:Disk can lie to you when you write to it by compressedgas on Friday December 12, 2025 @02:22AM (#46241692)
I thought an fsync on the containing directories of each of the logs was needed to ensure the that newly created files were durably present in the directories.
Re:Disk can lie to you when you write to it by jtregunna on Friday December 12, 2025 @08:37AM (#46243996)
Right, you do need to fsync when creating new files to ensure the directory entry is durable. However, WAL files are typically created once and then appended to for their lifetime, so the directory fsync is only needed at file creation time, not during normal operations.