From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs check segfaults after flipping 2 Bytes
Date: Thu, 2 Oct 2014 10:58:55 +0000 (UTC) [thread overview]
Message-ID: <pan$e396c$9b931048$23407b27$a2637e92@cox.net> (raw)
In-Reply-To: 542CE7CC.4020904@swiftspirit.co.za
Brendan Hide posted on Thu, 02 Oct 2014 07:51:08 +0200 as excerpted:
> A reasonable workaround to get the filesystem back into a usable or
> recoverable state might be to mount read-only and ignore checksums. That
> would keep the filesystem intact, though the system has no way to know
> whether or not the folder structures are also corrupt.
>
> I'm not sure if there is a mount option for this use case however. The
> option descriptions for "nodatasum" and "nodatacow" imply that *new*
> checksums are not generated. In this case the checksums already exist.
>From a certain viewpoint that's sort of what btrfs restore does, except
that it doesn't mount the filesystem; it simply lets you retrieve files
already there without mounting, if the filesystem isn't mountable.
Also see btrfs check --init-csum-tree, which basically wipes out the
csums, after which the filesystem should mount, but entirely without
checksums. Of course this option kills all the csums and there's
presently nothing that actually recalculates and rebuilds the csum tree
(tho there's a very recent patch that I believe adds that functionality),
so once they're gone, there' gone.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2014-10-02 10:59 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-01 20:29 btrfs check segfaults after flipping 2 Bytes Niklas Fischer
2014-10-01 20:34 ` Niklas Fischer
2014-10-01 23:31 ` Duncan
2014-10-02 5:51 ` Brendan Hide
2014-10-02 10:58 ` Duncan [this message]
2014-10-02 18:38 ` Brendan Hide
2014-10-06 2:29 ` Qu Wenruo
2014-10-06 4:10 ` Duncan
2014-10-06 4:13 ` Qu Wenruo
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='pan$e396c$9b931048$23407b27$a2637e92@cox.net' \
--to=1i5t5.duncan@cox.net \
--cc=linux-btrfs@vger.kernel.org \
/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