linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: <dsterba@suse.cz>, <linux-btrfs@vger.kernel.org>
Subject: Re: [PATCH 0/4] Better btrfsck tree corruption report and automatic csum tree rebuild.
Date: Thu, 29 Jan 2015 08:51:44 +0800	[thread overview]
Message-ID: <54C98420.9050408@cn.fujitsu.com> (raw)
In-Reply-To: <20150128182740.GI3641@twin.jikos.cz>


-------- Original Message --------
Subject: Re: [PATCH 0/4] Better btrfsck tree corruption report and 
automatic csum tree rebuild.
From: David Sterba <dsterba@suse.cz>
To: Qu Wenruo <quwenruo@cn.fujitsu.com>
Date: 2015年01月29日 02:27
> On Tue, Jan 13, 2015 at 10:04:43AM +0800, Qu Wenruo wrote:
>> Although btrfsck can rebuild the csum tree, but has the following
>> problems for end users or sysadmins who is not familiar with btrfs.
>> 1) No brief info on which tree is corrupted.
>>     In fact, after extent and chunk tree check, we iterate all the
>>     extents and should have a brief view about which tree is corrupted.
>>     We can info user the fact to give them a clear view about what to do
>>     next
>>
>> 2) No automatically csum tree rebuild.
>>     If btrfsck can rebuild csum tree when needed and possible, why not
>>     rebuild it?
>> This patchset handles this 2 problems:
>> Patch 1 will handle problem 1) and patch 2~3) to handle problem 2).
>> Now csum tree will be automatically rebuilt if and only if csum tree is
>> broken but all other tree is OK.
> I don't agree here, rebuilding the csum tree should be user's decision.
> Point 1) is good, giving more information to the user certainly helps to
> make that decision.
If 1) is merged, I'm OK with not merging 2).
Since before this patchset, even csum tree is corrupted, we don't even 
know csum tree is corrupted.

So if 1) is merged, user will be more clear to reset the csum tree.

Thanks,
Qu



      reply	other threads:[~2015-01-29  1:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13  2:04 [PATCH 0/4] Better btrfsck tree corruption report and automatic csum tree rebuild Qu Wenruo
2015-01-13  2:04 ` [PATCH 1/4] btrfs-progs: Report corrupted trees after check_chunks_and_extents() Qu Wenruo
2015-01-13  2:04 ` [PATCH 2/4] btrfs-progs: Continue repair even some extent reference can't be repaired and report result to user Qu Wenruo
2015-01-13  2:04 ` [PATCH 3/4] btrfs-progs: Automatically rebuild csum/extent tree if no other tree has corrupted/missing extent Qu Wenruo
2015-01-13  2:04 ` [PATCH 4/4] btrfs-progs: Remove all csum extents for init_csum Qu Wenruo
2015-01-28 18:27 ` [PATCH 0/4] Better btrfsck tree corruption report and automatic csum tree rebuild David Sterba
2015-01-29  0:51   ` Qu Wenruo [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=54C98420.9050408@cn.fujitsu.com \
    --to=quwenruo@cn.fujitsu.com \
    --cc=dsterba@suse.cz \
    --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;
as well as URLs for NNTP newsgroup(s).