From: Christoph Hellwig <hch@infradead.org>
To: Chris Mason <chris.mason@oracle.com>
Cc: Harald Glatt <mail@hachre.de>, linux-btrfs@vger.kernel.org
Subject: Re: Unable to mount btrfs after crash
Date: Mon, 13 Apr 2009 09:31:31 -0400 [thread overview]
Message-ID: <20090413133131.GA26533@infradead.org> (raw)
In-Reply-To: <1239629308.24841.2.camel@think.oraclecorp.com>
On Mon, Apr 13, 2009 at 09:28:28AM -0400, Chris Mason wrote:
> On Sun, 2009-04-12 at 02:03 +0200, Harald Glatt wrote:
> > Hi,
> >
> > I have set up a btrfs within a 200 GB file that I mount via -o loop.
> >
> > It worked fine so far but today it crashed when there was alot of
> > concurrent writing/reading going on.
> > I'm testing it with a torrent client, so the data is really irrelevant
> > - but it's a good amount of stress.
> >
>
> Loopback is somewhat tricky because the kernel loopback driver only
> writes into the page cache of the underlying file in the host
> filesystem. So, the filesystem inside the loopback file thinks it has
> written things to disk but in reality it is just in cache.
>
> If you crash in the middle of all of this, you're going to see
> significant corruptions of the FS inside the loopback file.
There's a patch floating around to add barrier support to the loop
driver to fix this issue. I hoped it would get merged for 2.6.30
but it's not in yet.
prev parent reply other threads:[~2009-04-13 13:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-12 0:03 Unable to mount btrfs after crash Harald Glatt
2009-04-13 13:28 ` Chris Mason
2009-04-13 13:31 ` Christoph Hellwig [this message]
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=20090413133131.GA26533@infradead.org \
--to=hch@infradead.org \
--cc=chris.mason@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=mail@hachre.de \
/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