Re: Is ReiserFS really a journaling file system, or is it really

From: Chris Mason (mason@suse.com)
Date: Fri Mar 31 2000 - 11:19:44 EST


On Fri, 31 Mar 2000, Stephen C. Tweedie wrote:

> Hi,
>
> On Wed, Mar 29, 2000 at 08:15:21PM -0800, H. Peter Anvin wrote:
> >
> > Truncation is fine, as long as the resulting file only contains blocks
> > that actually belonged to the file. stat() will then be able to
> > detect that the file is partial, and that the transfer needs to be
> > restarted or resumed.
>
> ext3 makes that guarantee, and will continue to do so.
>

In reiserfs, data files only contain blocks that actually belong to the
file. If you append to the file, and the system crashes, the file will
either have the new block, or it won't, and either way it will continue to
be valid for later reuse.

I don't promise the new block will have good data, so you would still need
to use the rename work around mentioned before. I plan to add a secure
file append mount option, and we are open to suggestions about making this
the default.

How does ext3 make this guarantee?

-chris

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



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:29 EST