User: Password:
|
|
Subscribe / Log in / New account

Ensuring data reaches disk

Ensuring data reaches disk

Posted Sep 9, 2011 14:31 UTC (Fri) by phro (subscriber, #29295)
In reply to: Ensuring data reaches disk by pr1268
Parent article: Ensuring data reaches disk

If the fflush() and fsync() calls were removed, normal termination of the program would typically flush stdio streams (see the exit(3) man page for caveats). The data would still be buffered by the kernel's page cache.

Thanks for pointing out the memory leak. ;-)


(Log in to post comments)


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