-
Notifications
You must be signed in to change notification settings - Fork 46
Proper fsync on OS X #6
Comments
While safer, I'm not sure this is desirable behavior on e.g. SSDs (where small Overall That said: We probably want this, but with a flag to turn it off in On Wed, Dec 02, 2015 at 04:51:37AM -0800, Christoph Reiter wrote:
|
@Unrud Do you have any opinion on this? |
After re-reading this I'm not sure if it's always expected that we block for the data to hit the disk. As long as it doesn't linger in the cache for too long (> 1sec, for example), it should be fine, no? |
I would use
But there are no guarantees for this. The data can linger in the cache for an arbitrary amount of time. The same problem seems to exist on Windows. |
It seems my reading comprehension is getting worse. Will implement as-is. |
See #18 for Windows |
I think this is missing
on OSX.
As mentioned here [0] and here [1] fsync doesn't wait for the changes to hit the disk there.
[0] https://lists.apple.com/archives/darwin-dev/2005/Feb/msg00072.html
[1] https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/fsync.2.html#//apple_ref/doc/man/2/fsync
The text was updated successfully, but these errors were encountered: