Re: Is ReiserFS really a journaling file system, or is it really just a synchronous-metadata file system like BSD FFS?

From: Eilert Brinkmann (eilert@informatik.uni-bremen.de)
Date: Wed Mar 29 2000 - 03:15:45 EST


Olaf Dabrunz <1dabrunz@informatik.uni-hamburg.de> wrote:
> On Wed, Mar 29, 2000 at 03:11:14AM +0100, Alan Cox wrote:
> >
> > You need higher level transactions for that. Download to new name, fsync,
> > rename().
> ^^^^^^^^^^^^^^^^^^^^
> What does it mean? Copy the file? rename()?

Instead of overwriting the existing file, you write the new version
into a new file with a different name, ensure that all data are
written to disc and then use rename() to atomically replace the old
file with the new one. This way you can be sure not to have a
corrupted version of the file with it's normal name.

Eilert

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       Eilert Brinkmann -- Universitaet Bremen -- FB 3, Informatik
eilert@informatik.uni-bremen.de - eilert@tzi.org - eilert@linuxfreak.com
              http://www.informatik.uni-bremen.de/~eilert/

- 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:24 EST