All of lore.kernel.org
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo@cn.fujitsu.com>
To: Chris Murphy <lists@colorremedies.com>,
	Karl-Philipp Richter <richter@richtercloud.de>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: btrfs check --init-csum-tree removes csums again
Date: Mon, 16 Feb 2015 16:42:09 +0800	[thread overview]
Message-ID: <54E1AD61.7010007@cn.fujitsu.com> (raw)
In-Reply-To: <CAJCQCtSSeSbb9r=f830k=5UjKkw=3huE6H_o3oqNWYg2UFJTwg@mail.gmail.com>


-------- Original Message --------
Subject: Re: btrfs check --init-csum-tree removes csums again
From: Chris Murphy <lists@colorremedies.com>
To: Karl-Philipp Richter <richter@richtercloud.de>
Date: 2015年02月16日 13:59
> On Sun, Feb 15, 2015 at 1:50 AM, Karl-Philipp Richter
> <richter@richtercloud.de> wrote:
>> Hi,
>> After running `btrfs check --init-csum-tree` 3.18.2 and 3.19-rc2 on a
>> btrfs all checksums are gone (thousands of line in the form of `no csum
>> found for inode X start Y` in `/var/log/kern.log`). I know that this
>> behavior (to delete all csums) was a stub in a dev version and remember
>> that it was fixed and that I even fixed a csum tree at one point. Could
>> someone please confirm and maybe even point me to a working version?
> I just tried this on CentOS 7 with kernel-3.19-0 and
> btrfs-progs-3.18.2 (from Fedora 21) and it rebuilt the csums, and took
> a little while to do it, unlike 3.12 which was very fast by just
> removing the csums. So... worksforme. However I used it with --repair,
> not by itself.
>
>
The behavior that deletes all csum tree but not to rebuilt them maybe a 
bug happens when extent tree is also
corrupted or with '--init-extent-tree' in 3.18.2.

And --init-csum-tree should imply --repair, so Chris' result should also 
be OK.

To Karl:
Would you please provide the full output of "btrfs check 
--init-csum-tree" and the kernel log?
IMHO this should help to find the bug in btrfsck.

Thanks,
Qu

  reply	other threads:[~2015-02-16  8:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-15  8:50 btrfs check --init-csum-tree removes csums again Karl-Philipp Richter
2015-02-16  5:59 ` Chris Murphy
2015-02-16  8:42   ` Qu Wenruo [this message]
2015-02-16 10:21     ` Tim DeNike
2015-02-16 11:19       ` Karl-Philipp Richter
2015-02-17  4:18         ` Karl-Philipp Richter
2015-02-17  5:19           ` Qu Wenruo
2015-02-17  7:12           ` Chris Murphy

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=54E1AD61.7010007@cn.fujitsu.com \
    --to=quwenruo@cn.fujitsu.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    --cc=richter@richtercloud.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.