Ronald Oussoren <ronaldousso...@mac.com> added the comment:

See <http://www.kernel.org/doc/man-pages/online/pages/man2/fsync.2.html> for 
linux' behavior, in particular: linux doesn't guarantee that data gets writting 
to the disk when you call fsync, only that the data gets pushed to the storage 
device.

This is the same behavior as fsync on OSX, and OSX also has a second API that 
provides stronger guarantees. 

With your patch it is no longer possible to call the C function fsync on OSX, 
even though it is good enough for a lot of use cases. As os.fcntl already 
supports F_FULLSYNC I see no good reason to change the implementation of 
os.fsync on OSX.

BTW. The need to use F_FULLSYNC in issue 11277 might be a bug in OSX itself, 
have you filed an issue in Apple's tracker?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11877>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to