linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] Better btrfsck tree corruption report and automatic csum tree rebuild.
@ 2015-01-13  2:04 Qu Wenruo
  2015-01-13  2:04 ` [PATCH 1/4] btrfs-progs: Report corrupted trees after check_chunks_and_extents() Qu Wenruo
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Qu Wenruo @ 2015-01-13  2:04 UTC (permalink / raw)
  To: linux-btrfs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-01-29  1:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).