[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Ian Charnas
Ian Charnas <[EMAIL PROTECTED]> added the comment: Sounds fair enough. I was looking forward to the glitz and glamor of the os module, but I'll settle for a good seat in fcntl. Here's a patch implementing just that. -ian Added file: http://bugs.python.org/file11074/fullf

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-07 Thread Ian Charnas
Ian Charnas <[EMAIL PROTECTED]> added the comment: Done. See 3517 http://bugs.python.org/issue3517 On Thu, Aug 7, 2008 at 12:53 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Guido van Rossum <[EMAIL PROTECTED]> added the comment: > > Based on discussion in

[issue3517] PATCH - Providing fullfsync on supported platforms

2008-08-07 Thread Ian Charnas
New submission from Ian Charnas <[EMAIL PROTECTED]>: Python currently provides os.fsync to call the POSIX 'fsync' on platforms that support it. While this function forces the operating system to force a file buffer to the storage device, data may still be waiting in the hardwa

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-06 Thread Ian Charnas
Ian Charnas <[EMAIL PROTECTED]> added the comment: My patch is against trunk, but really this fix should be applied to all versions that will have future releases. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3512] Change fsync to use fullfsync on platforms (like OS X) that have/need it

2008-08-06 Thread Ian Charnas
New submission from Ian Charnas <[EMAIL PROTECTED]>: fsync on OSX does not actually flush the file to disk as is desired. This is a problem because application developers rely on fsync for file integrity. SQLite [1] and MySQL [2] and other major database systems all use 'fullfsy