Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* invalid files names, btrfs check can't repair it
@ 2018-01-12 21:04 Sebastian Andrzej Siewior
  2018-01-12 23:16 ` Timofey Titovets
  2018-01-13  0:56 ` Qu Wenruo
  0 siblings, 2 replies; 20+ messages in thread
From: Sebastian Andrzej Siewior @ 2018-01-12 21:04 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Chris Mason, Josef Bacik, David Sterba

Hi,

so I had bad memory and before I realized it and removed it btrfs took some
damage. Now I have this:

|ls -lh crap/
|ls: cannot access 'crap/2f3f379b2a3d7499471edb74869efe-1948311.d': No such file or directory
|ls: cannot access 'crap/454bf066ddfbf42e0f3b77ea71c82f-878732.o': No such file or directory
|total 0
|-????????? ? ? ? ?            ? 2f3f379b2a3d7499471edb74869efe-1948311.d
|-????????? ? ? ? ?            ? 454bf066ddfbf42e0f3b77ea71c82f-878732.o

and in dmesg I see:

| BTRFS critical (device sda4): invalid dir item type: 33
| BTRFS critical (device sda4): invalid dir item name len: 8231

`btrfs check' (from v4.14.1) finds them and prints them but has no idea
what to do with it. Would it be possible to let the check tool rename
the offended filename to something (like its inode number) put it in
lost+found if it has any data attached to it and otherwise simply remove
it? Right now I can't remove that folder.

Sebastian

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

end of thread, other threads:[~2018-01-16 12:29 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-12 21:04 invalid files names, btrfs check can't repair it Sebastian Andrzej Siewior
2018-01-12 23:16 ` Timofey Titovets
2018-01-13  0:56 ` Qu Wenruo
2018-01-13 20:41   ` Sebastian Andrzej Siewior
2018-01-14  0:36     ` Qu Wenruo
2018-01-14 16:38       ` Sebastian Andrzej Siewior
2018-01-15  1:26         ` Qu Wenruo
2018-01-15  1:59           ` Lu Fengqi
2018-01-15  4:23             ` Qu Wenruo
2018-01-15 12:29               ` Sebastian Andrzej Siewior
2018-01-15  9:00           ` Sebastian Andrzej Siewior
2018-01-16  4:51             ` Qu Wenruo
2018-01-16  5:19               ` Qu Wenruo
2018-01-16 10:10                 ` Sebastian Andrzej Siewior
2018-01-16 10:22                   ` Qu Wenruo
2018-01-16 10:49                     ` Sebastian Andrzej Siewior
2018-01-16 11:20                       ` Qu Wenruo
2018-01-16 12:15                         ` Sebastian Andrzej Siewior
2018-01-16 12:28                           ` Qu Wenruo
2018-01-16 10:02               ` Sebastian Andrzej Siewior

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox