On Aug 10, 2009, at 8:59 AM, Edgar Fuß wrote:
[...] mv foo.tmp foo [...][...]Are you sure OS X's mv(1) simply calls rename(2)? Maybe some magic in mv(1) for ._xxx resource forks or directory hardlinks?So, apparently HFS+'s rename() isn't really atomic after all..
I also wrote a C program that used rename() to verify it. Anyway, I heard it was also verified by Apple's HFS+ people.