All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rosen Penev <rosenp@gmail.com>
To: Qu Wenruo <quwenruo.btrfs@gmx.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs volume can't see files in folder
Date: Thu, 31 Mar 2022 17:24:49 -0700	[thread overview]
Message-ID: <CAKxU2N9bzKpt94i53vzKgYKaDEGZ7tAj_nE-KFm-71qK3yXDjw@mail.gmail.com> (raw)
In-Reply-To: <562b797f-49b6-80a0-4a1e-7dafa1975e86@gmx.com>

On Thu, Mar 31, 2022 at 4:40 PM Qu Wenruo <quwenruo.btrfs@gmx.com> wrote:
>
>
>
> On 2022/4/1 03:29, Rosen Penev wrote:
> > A specific folder has files in it. Directly accessing the path works
> > but ls in the directory returns empty.
> >
> > Any way to fix this issue? I believe it happened after a btrfs
> > replace(failed drive in RAID5) + btrfs balance.
>
> Btrfs check please.
btrfs check --force /dev/sda
Opening filesystem to check...
Checking filesystem on /dev/sda
UUID: bfa267c0-df2c-45a6-ad88-9d76b3844326
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
btrfs: space cache generation (1084391) does not match inode (1084389)
failed to load free space cache for block group 139616845824
btrfs: space cache generation (1084391) does not match inode (1084389)
failed to load free space cache for block group 146059296768
btrfs: space cache generation (1084391) does not match inode (1084389)
failed to load free space cache for block group 3183842689024
btrfs: space cache generation (1084391) does not match inode (1084389)
failed to load free space cache for block group 3184916430848
btrfs: space cache generation (1084391) does not match inode (1084389)
failed to load free space cache for block group 3185990172672
btrfs: space cache generation (1084391) does not match inode (1084389)
failed to load free space cache for block group 3187063914496
btrfs: space cache generation (1084391) does not match inode (1084389)
failed to load free space cache for block group 3190318694400
block group 4885757034496 has wrong amount of free space, free space
cache has 286720 block group has 290816
failed to load free space cache for block group 4885757034496
block group 4898641936384 has wrong amount of free space, free space
cache has 36864 block group has 53248
failed to load free space cache for block group 4898641936384
block group 4953402769408 has wrong amount of free space, free space
cache has 262144 block group has 274432
failed to load free space cache for block group 4953402769408
block group 5478462521344 has wrong amount of free space, free space
cache has 716800 block group has 729088
failed to load free space cache for block group 5478462521344
block group 5484904972288 has wrong amount of free space, free space
cache has 811008 block group has 819200
failed to load free space cache for block group 5484904972288
[4/7] checking fs roots

It's currently stuck on that last one.

>
> It looks like an DIR_ITEM/DIR_INDEX corruption.
>
> Thanks,
> Qu

  reply	other threads:[~2022-04-01  0:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-31 19:29 btrfs volume can't see files in folder Rosen Penev
2022-03-31 23:39 ` Qu Wenruo
2022-04-01  0:24   ` Rosen Penev [this message]
2022-04-01  0:59     ` Qu Wenruo
2022-04-01  2:48       ` Rosen Penev
2022-04-01  2:53         ` Qu Wenruo
2022-04-01  3:05           ` Rosen Penev
2022-04-01  3:18             ` Qu Wenruo
2022-04-01  3:25               ` Rosen Penev
2022-04-01  5:05                 ` Qu Wenruo
2022-04-01  5:26                   ` Rosen Penev
2022-04-01  5:43                     ` Qu Wenruo
2022-04-01  5:38                   ` Rosen Penev

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=CAKxU2N9bzKpt94i53vzKgYKaDEGZ7tAj_nE-KFm-71qK3yXDjw@mail.gmail.com \
    --to=rosenp@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 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.