[snip sendmail/cyrus/qmail/postfix]
Just in case anyone cares here's what exim does (AFAICS)...
int fd1 = open(f1);
write(fd1);
fsync(fd1);
int fd2 = open(tmp);
write(fd2);
fsync(fd2);
rename(tmp, f2); // Good at this point.
So that seems to rely on all dir operations being sync.
Ps. I did a patch for exim to do the dir sync though...
http://www.and.org/exim-3.31-dirfsync.patch
-- # James Antill -- james@and.org :0: * ^From: .*james@and\.org /dev/null - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/