python-dev
[Prev] Thread [Next] | [Prev] Date [Next]
Re: [Python-Dev] Ext4 data loss Joachim König Wed Mar 11 03:00:23 2009
Guido van Rossum wrote:
To me, the flaw seem to be in the close() call (of the operating system). I'd expect the data to be in a persistent state once the close() returns. So there would be no need to fsync if the file gets closed anyway.On Tue, Mar 10, 2009 at 1:11 PM, Christian Heimes <[EMAIL PROTECTED]> wrote:[...] https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781/comments/54. [...]If I understand the post properly, it's up to the app to call fsync(), and it's only necessary when you're doing one of the rename dances, or updating a file in place. Basically, as he explains, fsync() is a very heavyweight operation; I'm against calling it by default anywhere.
Of course the close() call could take a while (up to 30 seconds in laptop mode), but if one does not want to wait that long, than one can continue without calling close() and take the risk.
Of course, if the data should be on a persistant storage without closing the file (e.g. for database applications), than one has to carefully call the different sync methods, but that's an other story.
Why has this ext4 problem not come up for other filesystems? _______________________________________________ Python-Dev mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/alexiscircle%40gmail.com
- Re: [Python-Dev] Ext4 data loss, (continued)
- Re: [Python-Dev] Ext4 data loss Antoine Pitrou
- Re: [Python-Dev] Ext4 data loss Eric Smith
- Re: [Python-Dev] Ext4 data loss Steven D'Aprano
- Re: [Python-Dev] [Python-ideas] Ext4 data loss zooko
- Message not available
- Re: [Python-Dev] Ext4 data loss Hrvoje Niksic
- Re: [Python-Dev] Ext4 data loss Martin v. Löwis
- Re: [Python-Dev] Ext4 data loss Greg Ewing
- Re: [Python-Dev] Ext4 data loss Martin v. Löwis
- Re: [Python-Dev] Ext4 data loss Antoine Pitrou
- Re: [Python-Dev] Ext4 data loss Cameron Simpson
Re: [Python-Dev] Ext4 data loss Joachim König <=
- Re: [Python-Dev] Ext4 data loss Cameron Simpson
- Re: [Python-Dev] Ext4 data loss Gisle Aas
Message not available
- Re: [Python-Dev] Ext4 data loss Hrvoje Niksic
Re: [Python-Dev] Ext4 data loss Neil Hodgson
- Re: [Python-Dev] Ext4 data loss Guido van Rossum
- Re: [Python-Dev] Ext4 data loss Barry Warsaw
- Re: [Python-Dev] Ext4 data loss Greg Ewing
- Re: [Python-Dev] Ext4 data loss Antoine Pitrou
- Re: [Python-Dev] Ext4 data loss Neil Hodgson
- Re: [Python-Dev] Ext4 data loss Antoine Pitrou