Bug#430958: dpkg should call fsync() before rename()

2009-07-27 Thread Marius Vollmer
I want to draw attention to this bug again. We are now running into this problem on Maemo 5, which is using ubifs as its root filesystem. Not syncing 'properly' on ubifs leads to zero-length files, etc, very much like on ext4. While the discussions rage about how fsync is not what applications

Bug#430958: dpkg should call fsync() before rename()

2007-06-28 Thread Russell Coker
Package: dpkg Version: 1.13.25 Severity: normal Below is part of the output of stracing dpkg when installing a package. As you can see it opens the file without O_SYNC and renames it without calling fsync() first. This means that a reboot during the period for which write- back caching is

Bug#430958: dpkg should call fsync() before rename()

2007-06-28 Thread Raphael Hertzog
On Thu, 28 Jun 2007, Russell Coker wrote: Package: dpkg Version: 1.13.25 Severity: normal Below is part of the output of stracing dpkg when installing a package. As you can see it opens the file without O_SYNC and renames it without calling fsync() first. This means that a reboot during