Re: [RFC] ext3: per-process soft-syncing data=ordered mode

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Valdis.Kletnieks
Date: Thursday, January 24, 2008 - 2:58 pm

On Thu, 24 Jan 2008 23:36:00 +0300, Al Boldi said:

If they're misusing it, they should be fixed.  There should be a limit to
how much the kernel will do to reduce the pain of doing stupid things.


Well-written programs only call fsync() when they really do need the semantics
of fsync.  Disabling that is just *asking* for trouble.

From rfc2821:

6.1 Reliable Delivery and Replies by Email

   When the receiver-SMTP accepts a piece of mail (by sending a "250 OK"
   message in response to DATA), it is accepting responsibility for
   delivering or relaying the message.  It must take this responsibility
   seriously.  It MUST NOT lose the message for frivolous reasons, such
   as because the host later crashes or because of a predictable
   resource shortage.

Some people really *do* think "the CPU took a machine check and after replacing
the motherboard, the resulting fsck ate the file" is a "frivolous" reason to
lose data.

But if you want to give them enough rope to shoot themselves in the foot with,
I'd suggest abusing LD_PRELOAD to replace the fsync() glibc code instead.  No
need to clutter the kernel with rope that can be (and has been) done in userspace.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] ext3: per-process soft-syncing data=ordered mode, Valdis.Kletnieks, (Thu Jan 24, 2:58 pm)
Re: [RFC] ext3: per-process soft-syncing data=ordered mode, Andreas Dilger, (Thu Jan 24, 11:47 pm)
Re: [RFC] ext3: per-process soft-syncing data=ordered mode, Andreas Dilger, (Wed Jan 30, 5:32 pm)