public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Ext2, fsync() and MTA's?
@ 2001-05-12 11:50 Andrew McNamara
  2001-05-12 14:13 ` Alan Cox
  0 siblings, 1 reply; 12+ messages in thread
From: Andrew McNamara @ 2001-05-12 11:50 UTC (permalink / raw)
  To: tytso, linux-kernel

Is the following still true in 2.4 (fsync() doesn't ensure directory
and inode data is up to date)? I had a feeling this had been fixed.

Under Linux, the Postfix MTA sets "chattr +S" on it's spool directories
- obviously this hurts it's performance badly (compared to the BSD's).
It would be really nice to be able to say it's no longer necessary. It
wants to know that a file (file data, inode and directory entry) are
commited to stable storage when an fsync returns.

------- Forwarded Message

Date:    Fri, 11 May 2001 19:17:03 -0400
From:    wietse@porcupine.org (Wietse Venema)
To:      Postfix users <postfix-users@postfix.org>
Subject: Re: maildir or not

David W. Chapman Jr.:
> I think that's the point.  Linux's fsync doesn't fsynch like most other
> unices, it still writes async.  There fore its not totally stable because
> you think you are writting sync when in fact you aren't.  I might be wrong,
> but this is what I have been hearing.

Linux fsync flushes the file data blocks.

The debate is about Linux's directory updates.

Postfix can open/write/fsync/close a file successfully, and Linux
can still lose the file because the directory entry was not updated.

This is why Postfix turns on synchronous writes on dircetories.
Unfortunately, that also makes file writes synchronous.  I will
not sacrifice reliability for the sake of performance.

	Wietse

- -
To unsubscribe, send mail to majordomo@postfix.org with content
(not subject): unsubscribe postfix-users


------- End of Forwarded Message


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-05-24  1:49 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-12 11:50 Ext2, fsync() and MTA's? Andrew McNamara
2001-05-12 14:13 ` Alan Cox
2001-05-12 14:53   ` Andrew McNamara
2001-05-12 15:20     ` Theodore Tso
2001-05-21 17:47     ` Stephen C. Tweedie
2001-05-21 22:04       ` Theodore Tso
2001-05-22 15:50         ` Oliver Xymoron
2001-05-22 16:48           ` Stephen C. Tweedie
2001-05-22 16:54             ` Oliver Xymoron
2001-05-22 16:57               ` Stephen C. Tweedie
2001-05-24  1:48       ` Marco d'Itri
2001-05-21 17:41   ` Stephen C. Tweedie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox