[OpenAFS] Qmail over AFS
Cees de Groot
cg@cdegroot.com
9 Aug 2002 10:40:29 +0200
Russ Allbery <rra@stanford.edu> said:
>> Wouldn't rename() work just as well? I never really looked at it, but on
>> reading the description, I don't see why it is necessary to link() from
>> tmp/ to new/.
>
>rename() removes the destination file if it already exists. link()
>doesn't. That's why maildirs use link().
>
Ah - thanks for pointing that out. I'm doing so much high-level-language
programming these days, that my Unix system call semantics knowledge is
quickly getting rusty :-)
Still, with the guaranteed globally unique naming algorithm for creating the
file in the first place, I'd be happy to run qmail on AFS with link() patched
to rename()..
--
Cees de Groot http://www.cdegroot.com <cg@cdegroot.com>
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD 1986 F303 937F E098 9E8B
Cogito ergo evigilo