On 30.09.2019 9:27, Qu Wenruo wrote:
I recommend to do a "btrfs check" on all fses.
I had done "btrfs check" on /dev/sda4: attached btrfs-check-sda4.output There are some errors. How to fix them?
[1/7] checking root items [2/7] checking extents incorrect local backref count on 1533538304 root 5 owner 7662482 offset 0 found 1 wanted 4194305 back 0x55bbb3f482a0 backpointer mismatch on [1533538304 16384] data backref 1533759488 root 5 owner 10122609 offset 0 num_refs 0 not found in extent tree incorrect local backref count on 1533759488 root 5 owner 10122609 offset 0 found 1 wanted 0 back 0x55bbb1c76e40 incorrect local backref count on 1533759488 root 16389 owner 10122609 offset 0 found 0 wanted 1 back 0x55bbb3f49d00 backref disk bytenr does not match extent record, bytenr=1533759488, ref bytenr=0 backpointer mismatch on [1533759488 4096] data backref 1534713856 root 5 owner 7312396 offset 4096 num_refs 0 not found in extent tree incorrect local backref count on 1534713856 root 5 owner 7312396 offset 4096 found 1 wanted 0 back 0x55bbac7e8ad0 incorrect local backref count on 1534713856 root 274877906949 owner 7312396 offset 4096 found 0 wanted 1 back 0x55bbb3be83c0 backref disk bytenr does not match extent record, bytenr=1534713856, ref bytenr=0 backpointer mismatch on [1534713856 4096] backref bytes do not match extent backref, bytenr=1985052672, ref bytes=20480, backref bytes=86016 backpointer mismatch on [1985052672 20480] ERROR: errors found in extent allocation tree or chunk allocation [3/7] checking free space cache [4/7] checking fs roots root 5 inode 843065 errors 100, file extent discount Found file extent holes: start: 0, len: 4294971392 unresolved ref dir 843063 index 3 namelen 13 name Templates.msf filetype 1 errors 4, no inode ref unresolved ref dir 843063 index 3 namelen 13 name Templates/msf filetype 0 errors 3, no dir item, no dir index unresolved ref dir 843063 index 5 namelen 6 name Drafts filetype 1 errors 4, no inode ref unresolved ref dir 843063 index 5 namelen 6 name Dsafts filetype 0 errors 3, no dir item, no dir index root 5 inode 843068 errors 400, nbytes wrong unresolved ref dir 843063 index 15 namelen 14 name filterlog.html filetype 1 errors 2, no dir index unresolved ref dir 843063 index 18 namelen 8 name Sent.sbd filetype 2 errors 2, no dir index root 5 inode 908624 errors 1, no inode item unresolved ref dir 843063 index 15 namelen 14 name filterlog.html filetype 1 errors 5, no dir item, no inode ref root 5 inode 908627 errors 1, no inode item unresolved ref dir 843063 index 18 namelen 8 name Sent/sbd filetype 2 errors 5, no dir item, no inode ref root 5 inode 7287329 errors 100, file extent discount Found file extent holes: start: 0, len: 8192 ERROR: errors found in fs roots Opening filesystem to check... Checking filesystem on /dev/sda4 UUID: a942b8da-e92d-4348-8de9-ded1e5e095ad found 184471662592 bytes used, error(s) found total csum bytes: 178843432 total tree bytes: 1172783104 total fs tree bytes: 921796608 total extent tree bytes: 52232192 btree space waste bytes: 184041078 file data blocks allocated: 538597539840 referenced 190557810688
