login
Header Space

 
 

Re: Proposal for "proper" durable fsync() and fdatasync()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jamie Lokier <jamie@...>
Cc: <linux-kernel@...>, <linux-fsdevel@...>, Chris Wedgwood <cw@...>
Date: Tuesday, February 26, 2008 - 3:43 am

Jamie Lokier wrote:

Yes, it should.



It's surprising you are surprised, given that this [lame] fsync behavior 
has remaining consistently lame throughout Linux's history.

[snip huge long proposal]

Rather than invent new APIs, we should fix the existing ones to _really_ 
flush data to physical media.

Linux should default to SAFE data storage, and permit users to retain 
the older unsafe behavior via an option.  It's completely ridiculous 
that we default to an unsafe fsync.

And [anticipating a common response from others] it is completely 
irrelevant that POSIX fsync(2) permits Linux's current behavior.  The 
current behavior is unsafe.

Safety before performance -- ESPECIALLY when it comes to storing user data.

Regards,

	Jeff (Linux ATA driver dude)


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Proposal for "proper" durable fsync() and fdatasync(), Jamie Lokier, (Tue Feb 26, 3:26 am)
Re: Proposal for "proper" durable fsync() and fdatasync(), Jeff Garzik, (Tue Feb 26, 3:43 am)
Re: Proposal for "proper" durable fsync() and fdatasync(), Jamie Lokier, (Tue Feb 26, 11:43 am)
Re: Proposal for "proper" durable fsync() and fdatasync(), Andrew Morton, (Tue Feb 26, 3:43 am)
Re: Proposal for "proper" durable fsync() and fdatasync(), Jamie Lokier, (Wed Feb 27, 10:16 am)
Re: Proposal for "proper" durable fsync() and fdatasync(), Jamie Lokier, (Tue Feb 26, 11:28 am)
Re: Proposal for "proper" durable fsync() and fdatasync(), Jamie Lokier, (Tue Feb 26, 11:07 am)
Re: Proposal for "proper" durable fsync() and fdatasync(), Andrew Morton, (Tue Feb 26, 12:27 pm)
speck-geostationary