Date: Tue, 18 May 2004 16:18:57 -0700 (PDT) From: Julian Elischer <julian@elischer.org> To: Don Lewis <truckman@FreeBSD.org> Cc: mi+mx@aldan.algebra.com Subject: Re: QMail and SoftUpdates Message-ID: <Pine.BSF.4.21.0405181617040.41838-100000@InterJet.elischer.org> In-Reply-To: <200405182308.i4IN8L7E021763@gw.catspoiler.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0405181617040.41838-100000>