News for hackers. Stuff that matters.
Re:Files Are Hard by drudru11 on Sunday December 13, 2015 @09:41PM (#10729132)
rename is atomic, but it is not guaranteed to be durable. In order for rename to be durable, I've learned that you have to fsync the parent directory.

I was saddened when I learned this. I used to use this old trick for a lot of my systems. I learned it from reading the code of old well-written unix systems programs.

There are no comments on this comment yet.