Re: atomic renames on freebsd w/ softupdates, was Re: djblinux?
Dan Kegel <[email protected]> Fri, 27 Jun 2003 10:28:12 -0700
| Newsgroups | gmane.comp.djb.package |
|---|---|
| Message-ID | <[email protected]> |
Laurent Bercot wrote: >>this is a little OT here, but there's one thing bernstein relies on >>which is not entirely true: atomic renames of files. for example >>freebsds soft-updates > > > <URL: http://cr.yp.to/qmail/faq/reliability.html#filesystems > makes > it clear: do not use softupdates for the qmail queue. Use a filesystem > that strictly conforms to the Unix semantics. > > Neither DJB nor you nor me can guarantee that rename() or anything of > the kind will work properly if the underlying filesystem uses an > unreliable sequence of operations. This is not the software author's > problem - it's the administrator's problem. This brings up the question -- does the Posixtest project's testsuite verify that atomic rename works? http://posixtest.sourceforge.net/ - Dan