linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jamie Lokier <jamie@shareable.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: [2.6.30 and later] file corruption on ext3 filesystem.
Date: Fri, 8 Jan 2010 04:07:38 +0000	[thread overview]
Message-ID: <20100108040738.GF5011@shareable.org> (raw)
In-Reply-To: <201001080254.o082sOXB018423@www262.sakura.ne.jp>

Tetsuo Handa wrote:
>   VMware Workstation 6.5.3 with 2CPUs / 512MB RAM.
>   ext3 filesystem ( /dev/sda1 ) mounted on / .

>   Run ./a.out and let the power fail (i.e. unplug the electric cable
>   or do equivalent) after more than 5 seconds (i.e. longer than kjournald's
>   commit interval). Probably 2 or 3 seconds after
>   "Let power fail after a few seconds.\n" was printed is the best.

It could be a kernel problem, but it could also be caused by VMware.

The combination of journalling, barriers, committing data safely to
disk and VMs is complicated and does not always provide filesystem
integrity on power failure, depending on many factors.

However, if you see corruption only with 2.6.30 and later, but not
with 2.6.29, that does suggest a kernel problem.

-- Jamie

  reply	other threads:[~2010-01-08  4:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-08  2:54 [2.6.30 and later] file corruption on ext3 filesystem Tetsuo Handa
2010-01-08  4:07 ` Jamie Lokier [this message]
2010-01-08 12:36 ` Dave Chinner
2010-01-08 13:15   ` Tetsuo Handa
2010-01-08 15:19     ` Dave Chinner
2010-01-09  2:53       ` Tetsuo Handa
2010-01-11 20:13         ` Ric Wheeler
2010-01-15 20:01           ` Pavel Machek

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=20100108040738.GF5011@shareable.org \
    --to=jamie@shareable.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).