All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sander <sander@humilis.net>
To: Ryan Underwood <nemesis-lists@icequake.net>
Cc: reiserfs-list@namesys.com
Subject: Re: Some ReiserFS failure situations and questions
Date: Fri, 5 Mar 2004 07:58:37 +0100	[thread overview]
Message-ID: <20040305065837.GE15906@favonius> (raw)
In-Reply-To: <20040303224848.GF31472@dbz.icequake.net>

Ryan Underwood wrote (ao):
> I have another problem with reiserfs that happens occasionally. On
> reiserfs and only reiserfs partitions, when a crash and journal
> recovery happens, occasionally two files that were open will have
> their contents "exchanged". For example, a piece of the text file I
> was editing ends up in a licq contact file, or an emule download gets
> a piece of a web page from opera in it. Is this a common problem, and
> what is the best way to keep it from happening?

The 'problem' is that reiserfs only does meta-data journaling. This
gives you a consistent filesystem after a crash from the computers'
point of view. Your data is still a bit toast though.

Nowadays (with a current kernel and some patches?) you have a few extra
mount options for reiserfs. The default with the old kernels is
'data=writeback'. In this mode the data can be written after the
metadata is commited.

With the patched kernel, the default is 'data=ordered'. In this mode the
data hits the disk before the metadata hits the disk. This should give
much more consistent data after a crash.

With the patched kernel you can also choose 'data=journal'. Then
meta-data and data is journalled, and thus fs consistency is more or
less certain.

In general it is assumed that the first one is the fastest, and the last
one the slowest, but in some situations this differs.

The new default (ordered) is a great improvement IMHO.

-- 
Humilis IT Services and Solutions
http://www.humilis.net

  parent reply	other threads:[~2004-03-05  6:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-03 22:48 Some ReiserFS failure situations and questions Ryan Underwood
2004-03-04  9:37 ` Hans Reiser
2004-03-04 22:09   ` Ryan Underwood
2004-03-05  6:47     ` Sander
2004-03-05  6:58 ` Sander [this message]
2004-03-05  7:08   ` Ryan Underwood
2004-03-05 20:37     ` Mike Fedyk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040305065837.GE15906@favonius \
    --to=sander@humilis.net \
    --cc=nemesis-lists@icequake.net \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.