Comment 93 for bug 317781

Revision history for this message
Theodore Ts'o (tytso) wrote :

@Peter

For git, you should add to your ~/.gitconfig file:

[core]
         fsyncobjectfiles = true

@Colin,

For Aptitude/dpkg, there really should be a call to sync before the program exits, if it has installed or upgraded new packages. I can't speak to subversion because I don't know how the .entries are written. If they are entirely new files, or if the files are being appended to, the 2.6.30 patches won't help (but if they are entirely new files), it's quite possible they will be corrupted with ext3 if you crash at the wrong time. Again, if you care about things being on disk, you have to use fsync(). I'd suggest filing bugs with the programs involved --- and in the meantime, use sync before you do risky things that might cause your kernel crash.