Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jul 2003 17:20:09 -0700
From:      David Schultz <das@FreeBSD.ORG>
To:        Brad Knowles <brad.knowles@skynet.be>
Cc:        FreeBSD Chat Mailing List <freebsd-chat@FreeBSD.ORG>
Subject:   Re: maildir with softupdates
Message-ID:  <20030724002009.GA16322@HAL9000.homeunix.com>
In-Reply-To: <a0600120abb447b7be0fb@[10.0.1.2]>
References:  <3F1E6456.9090400@fsn.hu> <20030723173242.GC14408@HAL9000.homeunix.com> <a0600120abb447b7be0fb@[10.0.1.2]>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 23, 2003, Brad Knowles wrote:
> > The statement is FUD; this is a topic that mailer people love to
> > complain about.  It's only true if your MTA doesn't call fsync()
> > when it wants to guarantee that the file it just wrote is on
> > stable storage.
> 
> 	The MTA does not know anything about maildir.  This would be a 
> local delivery agent (LDA) issue, not an MTA issue.

Brain fart.  Thanks for the correction.

> 	Moreover, the software not only needs to issue an fsync() on the 
> file, it also needs to issue an fsync() on the directory, in order to 
> have reasonable guarantees that the date has been safely written.

Softupdates automatically syncs the parent directory (and its
parent, etc) when you fsync() the file.  The bug that I mentioned
ext3 had was that it didn't do this.  Actually, it may be too
harsh to call it a bug, given that POSIX has rather lax
requirements regarding what fsync() is required to do, but most
applications I've looked at in regards to this issue assume the
behavior that softupdates has.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030724002009.GA16322>