What's the practical use of the error close() returns?

What's the practical use of the error close() returns?

Shachar Shemesh shachar at shemesh.biz
Sun Jul 29 06:35:18 IDT 2012


On 07/29/2012 02:12 AM, Daniel Shahaf wrote:
> So if the disk hardware fails after close() returns but before the OS
> caches are flushed... 

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).

Shachar

-- 
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20120729/f4bb5b6e/attachment.html>


More information about the Linux-il mailing list