[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Ordered Mode vs Journaled Mode


On Tue, Oct 02, 2001 at 04:59:32PM -0600, Andreas Dilger wrote:
> With ordered or writeback mode, it is possible that you are in the middle
> of writing data into your file when you get a crash.  What is in the file?
> Half new data and half old data.  If you have journaled data mode, then
> either the data made it into the journal along with the metadata (in which
> case it ALL makes it into the file) or the transaction is incomplete (in
> which case none of the data is written to your file).

Sort of --- this only applies if you are updating the contents of an
existing file without truncating and rewriting it.  Rewriting a file
from scratch after a truncate, or writing a new file, gives you the
same guarantees in both case; and that's by far the most common way
files are written for most users.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]