linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: <linux-btrfs@vger.kernel.org>
Subject: [PATCH 0/4] Better btrfsck tree corruption report and automatic csum tree rebuild.
Date: Tue, 13 Jan 2015 10:04:43 +0800	[thread overview]
Message-ID: <1421114687-6084-1-git-send-email-quwenruo@cn.fujitsu.com> (raw)

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.

Qu Wenruo (4):
  btrfs-progs: Report corrupted trees after check_chunks_and_extents()
  btrfs-progs: Continue repair even some extent reference can't be    
    repaired and report result to user.
  btrfs-progs: Automatically rebuild csum/extent tree if no other tree
    has     corrupted/missing extent.
  btrfs-progs: Remove all csum extents for init_csum

 cmds-check.c  | 172 +++++++++++++++++++++++++++++++++++++++++++++++++++-------
 ctree.h       |   4 ++
 extent-tree.c | 108 ++++++++++++++++++++++++++++++++++++
 3 files changed, 263 insertions(+), 21 deletions(-)

-- 
2.2.1


             reply	other threads:[~2015-01-13  2:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13  2:04 Qu Wenruo [this message]
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

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=1421114687-6084-1-git-send-email-quwenruo@cn.fujitsu.com \
    --to=quwenruo@cn.fujitsu.com \
    --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).