- Published on
Investigation · Part 4 of 20 · What survives a crash
Why the Directory Needs fsync Too
fsync of a new file does not promise that its name is on the disk. I measured directory fsync on ext4: half a microsecond after a file fsync, about 420 microseconds after a rename, and alone it made the name durable while the data stayed in RAM.