Status: Accepted
Owner: ----
CC: [email protected]
Labels: Type-Defect Priority-High Milestone-Release2.12 HaskellTask Usability

New issue 874 by [email protected]: Add fsync call to atomicUpdateFile
http://code.google.com/p/ganeti/issues/detail?id=874

Currently it can happen that if the master node crashes in the process of renaming an atomically created file, the content of the file won't get flushed, but the directory entry link will, losing the content of the file.

Therefore it's necessary to add a 'fsync' call before renaming the temporary file to the original name.

While including 'fsync' into 'unix' has been discussed recently,
http://www.haskell.org/pipermail/libraries/2013-December/thread.html#21756
it doesn't seem it got accepted, so we'll have to add the system call ourselves.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

Reply via email to