From owner-freebsd-hackers Tue Feb 6 11:45:22 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from brutus.conectiva.com.br (brutus.conectiva.com.br [200.250.58.146]) by hub.freebsd.org (Postfix) with ESMTP id 21FB837B401 for ; Tue, 6 Feb 2001 11:45:01 -0800 (PST) Received: from localhost (riel@localhost) by brutus.conectiva.com.br (8.11.2/8.11.2) with ESMTP id f16Ji1028541; Tue, 6 Feb 2001 17:44:01 -0200 X-Authentication-Warning: duckman.distro.conectiva: riel owned process doing -bs Date: Tue, 6 Feb 2001 17:44:01 -0200 (BRDT) From: Rik van Riel X-Sender: riel@duckman.distro.conectiva To: Andre Oppermann Cc: Matt Dillon , Poul-Henning Kamp , Charles Randall , Dan Phoenix , Alfred Perlstein , Jos Backus , freebsd-hackers@FreeBSD.ORG Subject: Re: soft updates and qmail (RE: qmail IO problems) In-Reply-To: <3A805217.1D045A00@monzoon.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 6 Feb 2001, Andre Oppermann wrote: > Rik van Riel wrote: > > On Tue, 6 Feb 2001, Matt Dillon wrote: > > > > Reiserfs and ext3 have write-ahead logs and, AFAIK, fsync() > > will not return until there is a commit point in the log. > > Also FFS/UFS will not return before the file and directory entry > is written to the disk. Not relevant for the point Matt was making... > > This means that fsync() will guarantee that the transactions > > won't be unwound (unless I've overlooked some weird special > > case situations where it is needed after all...). > > > > The only filesystems I can see being completely resilient > > against these destructive roll-backs would be LFS and tux2. > > This doesnt matter. If your machine crashes while receiving a > message you're never going to issue a SMTP 250 to the sending > mail server and it will try again later. We don't care if this > incomplete queue file survives or gets purged. If you have a busy mailspool, it might just be the case that the OS is making another write to the same directory after your SMTP 250 has been issued. If the machine crashes during this write and leaves the directory in a state which cannot be recovered by fsck, the whole directory will be purged and you'll lose your messages. regards, Rik -- Linux MM bugzilla: http://linux-mm.org/bugzilla.shtml Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose... http://www.surriel.com/ http://www.conectiva.com/ http://distro.conectiva.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message