<html style="direction: ltr;">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<style type="text/css">body p { margin-bottom: 0.2cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-detected-decoding-type="UTF-8" bgcolor="#FFFFFF"
text="#000000">
<div class="moz-cite-prefix">On 07/29/2012 02:12 AM, Daniel Shahaf
wrote:<br>
</div>
<blockquote cite="mid:20120728231213.GA26431@tarsus.local2"
type="cite">
So if the disk hardware fails after close() returns but before the
OS
caches are flushed...
</blockquote>
<br>
It is not part of close(2)'s job description to protect against this
scenario. If you want to protect against this scenario, use sync(2).<br>
<br>
Shachar<br>
<br>
<pre class="moz-signature" cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a class="moz-txt-link-freetext" href="http://www.lingnu.com">http://www.lingnu.com</a>
</pre>
</body>
</html>