
10 Apr
2012
10 Apr
'12
10:17 a.m.
James Harper <james.harper@bendigoit.com.au> wrote:
The problem with omitting the fsync in the case of an application is that you are violating your contract with the user. If I save a document then when the application says that the save is complete my document had damn well better be on my memory stick.
It is my (perhaps faulty) understanding that most editors omit the fsync() and that the file will only be on your memory stick when you unmount it in the typical case. If the memory stick is removed without being unmounted properly then I expect the file system to be corrupt and do not expect recently written data to be intact.