[Python-Dev] Ext4 data loss

Antoine Pitrou solipsis at pitrou.net
Wed Mar 11 03:20:39 CET 2009


Christian Heimes <lists <at> cheimes.de> writes:
> 
> I agree with you, fsync() shouldn't be called by default. I didn't plan
> on adding fsync() calls all over our code. However I like to suggest a
> file.sync() method and a synced flag for files to make the job of
> application developers easier.

We already have os.fsync() and os.fdatasync(). Should the sync() (and
datasync()?) method be added as an object-oriented convenience?





More information about the Python-Dev mailing list