Journaling vs. power failure
Posted Sep 11, 2004 17:59 UTC (Sat) by pimlott
In reply to: Journaling vs. power failure
Parent article: Linux vies with Oracle (vnunet)
The main problem with this shows up in (e.g.) make judging file currency by the modification time; the compiler might not have finished writing the file, and make didn't get a chance to delete it (as it does, e.g. when you kill it), so after a crash you have to "make clean" in any directories that were being written when it happened.
ext3's default ordered mode is supposed to prevent this: Data blocks are not journaled, but they are written out before the metadata blocks are committed. So the file could contain garbage, but if so, the mtime should not have been updated.
to post comments)