[Dovecot] rename() non-atomic on HFS? (was: Dovecot-1.1.15 panics)

Timo Sirainen tss at iki.fi
Mon Aug 10 18:52:03 EEST 2009


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.



More information about the dovecot mailing list