On Aug 10, 2009, at 8:59 AM, Edgar Fuß wrote:

[...] mv foo.tmp foo [...]

[...]

So, apparently HFS+'s rename() isn't really atomic after all..
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?

I also wrote a C program that used rename() to verify it. Anyway, I heard it was also verified by Apple's HFS+ people.

Reply via email to