linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Qu Wenruo <quwenruo.btrfs@gmx.com>
To: k g <klimaax@gmail.com>, linux-btrfs@vger.kernel.org
Subject: Re: Files/Folders invisibles with 'ls -a' but can 'cd' to folder
Date: Thu, 5 Aug 2021 06:55:43 +0800	[thread overview]
Message-ID: <c11aea64-0f94-7cb1-886e-f6bc5050d7f2@gmx.com> (raw)
In-Reply-To: <94bf3fad-fd41-ecc0-404c-ccd087fca05d@gmail.com>



On 2021/8/4 下午9:19, k g wrote:
> Hi
>
>
> As I say in my subject, I'm facing a weird problem with my btrfs
> partition (I already sent this message on reddit /r/btrfs/ )

Sorry, reddit is not really the go-to place for technical discussion nor
bug report.

>
> It's in fact a btrfs partition in a raid5 synology system.

We don't know how heavily backported the synology kernel is, thus it's
normally better to ask for help from synology.

>
>
>
> 3 days ago, the volume 'crashed' (synology terms) ,however SMART data is
> ok and I don't have sector relcocation errors or CRC.... I rebooted
> several times , and after dozen of reboots my partition shows up , but 3
> TB of 10 TB are missing, I made a scrub but it did made my missing files
> appears.
>
>
>
> desperately I made a 'cd xyz' in a directory (I remember some of the
> folder names) and it works ; and inside this folder I can do "ls" and
> all files and subfolders appears .
>
> I made a copy elsewhere of some files and these ones are not corrupted
> or bit roted.
>
>
>
> I don't want to make a btrfs check --repair of course.

But "btrfs check" without --repair should be the best tool to show
what's going wrong.

Alternatively, "btrfs check --mode=lowmem" could provide a better human
readable output.

>
>
>
> Is there a way to "relink" indexes/root or whatever it is called to
> bring back these files/folder visible and accessible with a safe command ?

It's not that simple, from your description, it looks like the dir has
some DIR_ITEM but no DIR_INDEX, thus it doesn't shows up in ls, but cd
still work.

This normally indicates much bigger problem.

Thanks,
Qu
>
> I'm planning to backup all , is 'btrfs restore' will access to these
> "non visible" directories ?
>
>
>
> "I saw similar case here : The Directory Who Wasn't There : btrfs
> (reddit.com) , but I can't find a reply that solve the problem"
>
>
>
> cdly
>

  reply	other threads:[~2021-08-04 22:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-04 13:19 Files/Folders invisibles with 'ls -a' but can 'cd' to folder k g
2021-08-04 22:55 ` Qu Wenruo [this message]
2021-08-11 21:54   ` k g
2021-08-12  1:23     ` 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=c11aea64-0f94-7cb1-886e-f6bc5050d7f2@gmx.com \
    --to=quwenruo.btrfs@gmx.com \
    --cc=klimaax@gmail.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).