linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to remove directory entry
@ 2019-12-08 19:19 Mike Gilbert
  2019-12-09  0:11 ` Qu Wenruo
  2019-12-09  0:17 ` Zygo Blaxell
  0 siblings, 2 replies; 15+ messages in thread
From: Mike Gilbert @ 2019-12-08 19:19 UTC (permalink / raw)
  To: linux-btrfs

Hello,

I have a directory entry that cannot be stat-ed or unlinked. This
issue persists across reboots, so it seems there is something wrong on
disk.

% ls -l /var/cache/ccache.bad/2/c
ls: cannot access
'/var/cache/ccache.bad/2/c/0390cb341d248c589c419007da68b2-7351.manifest':
No such
file or directory
total 0
-????????? ? ? ? ?            ? 0390cb341d248c589c419007da68b2-7351.manifest

% uname -a
Linux naomi 4.19.67 #4 SMP Sun Aug 18 14:35:39 EDT 2019 x86_64 AMD
Phenom(tm) II X6 1055T Processor
AuthenticAMD GNU/Linux

% btrfs --version
btrfs-progs v5.4

I have tried running btrfs check, and I get differing results based on
the --mode switch:

# btrfs check --readonly /dev/sda3
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups
Opening filesystem to check...
Checking filesystem on /dev/sda3
UUID: 5e9dcab6-036d-40f1-8b40-24ab4c062bf6
found 284337733632 bytes used, no error found
total csum bytes: 267182280
total tree bytes: 4498915328
total fs tree bytes: 3972464640
total extent tree bytes: 199819264
btree space waste bytes: 776711635
file data blocks allocated: 313928671232
 referenced 279141621760

# btrfs check --readonly --mode=lowmem /dev/sda3
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space cache
[4/7] checking fs roots
ERROR: root 5 INODE_ITEM[4065004] index 18446744073709551615 name
0390cb341d248c589c419007da68b2-7351.manifest filetype 1 missing
ERROR: root 5 DIR ITEM[486836 13905] name
0390cb341d248c589c419007da68b2-7351.manifest filetype 1 mismath
ERROR: root 5 DIR ITEM[486836 2543451757] mismatch name
0390cb341d248c589c419007da68b2-7351.manifest filetype 1
ERROR: errors found in fs roots
Opening filesystem to check...
Checking filesystem on /dev/sda3
UUID: 5e9dcab6-036d-40f1-8b40-24ab4c062bf6
found 284337733632 bytes used, error(s) found
total csum bytes: 267182280
total tree bytes: 4498915328
total fs tree bytes: 3972464640
total extent tree bytes: 199819264
btree space waste bytes: 776711635
file data blocks allocated: 313928671232
 referenced 279141621760

Please advise on possible next steps to diagnose and fix this.

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

end of thread, other threads:[~2019-12-09  2:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-08 19:19 Unable to remove directory entry Mike Gilbert
2019-12-09  0:11 ` Qu Wenruo
2019-12-09  0:30   ` Mike Gilbert
2019-12-09  0:41     ` Qu Wenruo
2019-12-09  1:31       ` Mike Gilbert
2019-12-09  1:45         ` Qu Wenruo
2019-12-09  1:51           ` Mike Gilbert
2019-12-09  2:05             ` Qu Wenruo
2019-12-09  2:20               ` Qu Wenruo
2019-12-09  2:37                 ` Mike Gilbert
2019-12-09  2:43                   ` Qu Wenruo
2019-12-09  0:17 ` Zygo Blaxell
2019-12-09  1:33   ` Zygo Blaxell
2019-12-09  1:52     ` Qu Wenruo
2019-12-09  2:23       ` Zygo Blaxell

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).