Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Cebtenzzre <cebtenzzre@gmail.com>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs check: root errors 400, nbytes wrong
Date: Sat, 26 Aug 2023 21:12:52 -0400	[thread overview]
Message-ID: <7536ccd3d1c3ccc349aa5f0f5e587c21cb773a46.camel@gmail.com> (raw)
In-Reply-To: <04b21f25-a80e-4e1b-a70a-3401ca3c2af2@gmx.com>

On Thu, 2023-08-24 at 13:40 +0800, Qu Wenruo wrote:
> But it's mostly fine, a btrfs check --repair should be safe if and
> only if those are the only errors.

I ran btrfs check --repair, and it gave me a warning:

Starting repair.
Opening filesystem to check...
Checking filesystem on /dev/nvme0n1p2
UUID: 76721faa-8c32-4e70-8a9e-859dece0aec1
[1/7] checking root items
Fixed 0 roots.
[2/7] checking extents
No device size related problem found
[3/7] checking free space cache
cache and super generation don't match, space cache will be invalidated
[4/7] checking fs roots
reset nbytes for ino 123827824 root 258
reset nbytes for ino 123827824 root 15685
reset nbytes for ino 123827824 root 15760
reset nbytes for ino 123827824 root 15786
reset nbytes for ino 123827824 root 15814
reset nbytes for ino 123827824 root 15822
reset nbytes for ino 123827824 root 15826
reset nbytes for ino 123827824 root 15830
reset nbytes for ino 123827824 root 15834
reset nbytes for ino 123827824 root 15838
reset nbytes for ino 123827824 root 15842
warning line 3916
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
found 2405445431302 bytes used, no error found
total csum bytes: 1891078208
total tree bytes: 13012697088
total fs tree bytes: 9898934272
total extent tree bytes: 836861952
btree space waste bytes: 2043135264
file data blocks allocated: 25854472876032
 referenced 2618226024448

This is btrfs-progs v6.3.3. It looks like that would be line 3916 of
check/main.c:

if (!cache_tree_empty(&wc.shared))
	fprintf(stderr, "warning line %d\n", __LINE__);

Is this anything I should be concerned about?

Thanks,
Cebtenzzre
> 

  parent reply	other threads:[~2023-08-27  1:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-24  0:38 btrfs check: root errors 400, nbytes wrong Cebtenzzre
2023-08-24  5:40 ` Qu Wenruo
     [not found]   ` <9d3f9b12f9512586c0bfbe42e730e4304a540127.camel@gmail.com>
2023-08-24 23:38     ` Cebtenzzre
2023-08-27  1:12   ` Cebtenzzre [this message]
2023-08-27  2:06     ` 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=7536ccd3d1c3ccc349aa5f0f5e587c21cb773a46.camel@gmail.com \
    --to=cebtenzzre@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=quwenruo.btrfs@gmx.com \
    /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