QMail and SoftUpdates

Mikhail Teterin mi+mx at aldan.algebra.com
Tue May 18 17:25:26 PDT 2004

=On Tue, 18 May 2004, Don Lewis wrote:
=> On 18 May, Julian Elischer wrote:
=> > 
=> > 
=> > 
=> > An fsync will sync ALL directory entries pointing to the file
=> I haven't looked at how qmail works, but my suspicion is that it
=> fsync()s the file and then creates a link (and probably unlinks
=> the old name) to mark the queue file as valid and is not partially
=> written. I think this would work with softupdates if the file were
=> fsync()ed again after the link() call. I won't comment about why this
=> change is unlikely to make it into the code.
=a single fsync AFTER the link but before acking the mail would be

Should the mail/qmail port do that?


More information about the freebsd-fs mailing list