LWN.net Logo

Where the the correctness go?

Where the the correctness go?

Posted Mar 16, 2009 3:19 UTC (Mon) by k8to (subscriber, #15413)
In reply to: Where the the correctness go? by endecotp
Parent article: Ts'o: Delayed allocation and the zero-length file problem

A no-op fsync is not compliant. You've taken it quite a bit too far.

fsync explicitly says that when it returns success, the data has been handed to the storage system successfully.

It doesn't guarantee that that storage system has committed it in a durable way for all scenarios. That's another issue.

fsync does guarantee that the data has been handed to the storage medium, but makes no guarantees about the implementation of that storage medium.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds