Skip to contentSkip to conversation

btrfsck - process_inode_item: Assertion `!(rec->ino != key->objectid || rec->refs > 1)' failed

DISCUSSION Tomasz Mloduchowski 1 participant 1 message Apr 9, 2014 Btrfs file system

lore
Share & tools
lore
#0 lore raw

Hi,

I'm experiencing the following error when performing btrfsck --repair on the damaged filesystem (some files indicate 'stale NFS handle' errors when accessing).

checking extents
parent transid verify failed on 199000064 wanted 1868 found 1586 parent transid verify failed on 199000064 wanted 1868 found 1586 parent transid verify failed on 199000064 wanted 1868 found 1586 parent transid verify failed on 199000064 wanted 1868 found 1586 Ignoring transid failure
leaf parent key incorrect 199000064
bad block 199000064
Chunk[256, 228, 1103101952]: length(1073741824), offset(1103101952), type(1) is not found in block group

-- snip --

Chunk[256, 228, 111121793024]: length(1023410176), offset(111121793024), type(1) is not found in block group
Errors found in extent allocation tree or chunk allocation checking free space cache
checking fs roots
parent transid verify failed on 199000064 wanted 1868 found 1586 Ignoring transid failure

-- snip --

parent transid verify failed on 199000064 wanted 1868 found 1586 Ignoring transid failure
btrfsck: cmds-check.c:512: process_inode_item: Assertion `!(rec->ino != key->objectid || rec->refs > 1)' failed.

The image (btrfs-image -s -c 9 -t 4) of this filesystem is available here:

http://static.qdot.me/home-btrfs-fail-2.img

btrfs-progs:
commit 761650b628d3b8964cc55da68ad5c8187f55c543

Thanks a lot for pointers or assistance (or patches to try out).

Cheers,
Tomasz