From: David Sterba <dsterba@suse.cz>
To: Duncan <1i5t5.duncan@cox.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: should btrfsck fix a bad superblock?
Date: Tue, 29 Dec 2015 18:19:56 +0100 [thread overview]
Message-ID: <20151229171956.GC4227@twin.jikos.cz> (raw)
In-Reply-To: <pan$5afbb$4270f15d$d1ce1c42$cc039fab@cox.net>
On Tue, Dec 29, 2015 at 02:28:19AM +0000, Duncan wrote:
> Btrfs check's -s option simply lets you use a different superblock. I
> don't believe check is designed to actually fix superblocks, tho I guess
> with --repair it fixes certain bad fields in them.
The superblock is a special type of metadata, 'btrfs check' works on the
the trees pointed by it. There's the super-recover command you mentioned
and also the (still) standaone btrfs-select-super tool that are supposed
to fix the superblock itself.
Similarly, check may find specific problems, will not attempt to fix all
of them and could suggest to use a specialized fix tool. The reasons are
to avoid overbloating the checker command line options. An example is
the b-tree key bitflip fix (code not merged yet).
prev parent reply other threads:[~2015-12-29 17:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-29 0:10 should btrfsck fix a bad superblock? Chris Murphy
2015-12-29 2:28 ` Duncan
2015-12-29 2:46 ` Chris Murphy
2015-12-29 2:58 ` Chris Murphy
2015-12-29 17:19 ` David Sterba [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=20151229171956.GC4227@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=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