QMail and SoftUpdates
Julian Elischer
julian at elischer.org
Tue May 18 17:26:44 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 sufficient.
More information about the freebsd-fs
mailing list