Re: precise characterization of ext3 atomicity

From: Andrew Morton
Date: Thu Sep 04 2003 - 10:56:15 EST


Hans Reiser <reiser@xxxxxxxxxxx> wrote:
>
> Is it correct to say of ext3 that it guarantees and only guarantees
> atomicity of writes that do not cross page boundaries?

Yes.

> By contrast, ext3 only guarantees the atomicity of a single write
> that does not span a page boundary, and it guarantees that its internal
> metadata will not be corrupted even if your applications data is
> corrupted after the crash.

Not sure that I understand this. In data=writeback mode, metadata
integrity is preserved but data writes may be lost. In data=journal and
data=ordered modes the data and the metadata which refers to it are always
in sync on-disk.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/