linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* `btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags & 1)' failed.` in `btrfsck`
@ 2014-07-18 12:01 Karl-Philipp Richter
  2014-07-18 12:13 ` Wang Shilong
  0 siblings, 1 reply; 3+ messages in thread
From: Karl-Philipp Richter @ 2014-07-18 12:01 UTC (permalink / raw)
  To: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 2627 bytes --]

Hi together,
I'm experiencing the following issues when I invoke `btrfsck` on a
sparse file image with a GPT and one (the only) btrfs partition attached
to a loop device

    $ sudo btrfsck --repair --init-csum-tree --init-extent-tree -b
/dev/loop0p1
    Incorrect local backref count on 128510738432 root 5 owner 3849475
offset 0 found 1 wanted 0 back 0xbab41270
    backpointer mismatch on [128510738432 4096]
    ref mismatch on [128510742528 12288] extent item 0, found 1
    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
& 1)' failed.

    $ sudo btrfsck --repair --init-csum-tree --init-extent-tree /dev/loop0p1
    Incorrect local backref count on 128510726144 root 5 owner 3849470
offset 0 found 1 wanted 0 back 0xbbcb9500
    backpointer mismatch on [128510726144 12288]
    ref mismatch on [128510738432 4096] extent item 0, found 1
    adding new data backref on 128510738432 root 5 owner 3849475 offset
0 found 1
    Backref 128510738432 root 5 owner 3849475 offset 0 num_refs 0 not
found in extent tree
    Incorrect local backref count on 128510738432 root 5 owner 3849475
offset 0 found 1 wanted 0 back 0xbbcb9630
    backpointer mismatch on [128510738432 4096]
    ref mismatch on [128510742528 12288] extent item 0, found 1
    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
& 1)' failed.

    $ sudo btrfsck --repair /dev/loop0p1
    Incorrect local backref count on 130861096960 root 5 owner 22733727
offset 0 found 1 wanted 0 back 0xc7c7d170
    backpointer mismatch on [130861096960 8192]
    ref mismatch on [130861105152 8192] extent item 0, found 1
    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
& 1)' failed.

    $ sudo btrfsck --repair /dev/loop0p1
    Backref 130861096960 root 5 owner 22733727 offset 0 num_refs 0 not
found in extent tree
    Incorrect local backref count on 130861096960 root 5 owner 22733727
offset 0 found 1 wanted 0 back 0xc7f31170
    backpointer mismatch on [130861096960 8192]
    ref mismatch on [130861105152 8192] extent item 0, found 1
    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
& 1)' failed.

I'm using `btrfs-progs` 24cf4d8c3ee924b474f68514e0167cc2e602a48d on
Linux 3.16-rc5 (anything else, i.e. older versions, give me immediate
error after start because errornous file system)

I'd like to know whether this (assertion) error is related to a bug or
missing feature in btrfs-progs and might be fixed at some point or
whether this might indicate a completely messed up btrfs.

Best regards,
Karl-P. Richter


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 538 bytes --]

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

* Re: `btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags & 1)' failed.` in `btrfsck`
  2014-07-18 12:01 `btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags & 1)' failed.` in `btrfsck` Karl-Philipp Richter
@ 2014-07-18 12:13 ` Wang Shilong
  2014-07-21 18:02   ` Karl-Philipp Richter
  0 siblings, 1 reply; 3+ messages in thread
From: Wang Shilong @ 2014-07-18 12:13 UTC (permalink / raw)
  To: Karl-Philipp Richter; +Cc: linux-btrfs


Hi,

There are some patches for fsck flighting, they  are integrated  in David's branches.
You can pull from David's latest branch, and see if it helps:

https://github.com/kdave/btrfs-progs  integration-20140704

Have a try and see if it helps anyway.

Thanks,
Wang

> Hi together,
> I'm experiencing the following issues when I invoke `btrfsck` on a
> sparse file image with a GPT and one (the only) btrfs partition attached
> to a loop device
> 
>    $ sudo btrfsck --repair --init-csum-tree --init-extent-tree -b
> /dev/loop0p1
>    Incorrect local backref count on 128510738432 root 5 owner 3849475
> offset 0 found 1 wanted 0 back 0xbab41270
>    backpointer mismatch on [128510738432 4096]
>    ref mismatch on [128510742528 12288] extent item 0, found 1
>    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
> & 1)' failed.
> 
>    $ sudo btrfsck --repair --init-csum-tree --init-extent-tree /dev/loop0p1
>    Incorrect local backref count on 128510726144 root 5 owner 3849470
> offset 0 found 1 wanted 0 back 0xbbcb9500
>    backpointer mismatch on [128510726144 12288]
>    ref mismatch on [128510738432 4096] extent item 0, found 1
>    adding new data backref on 128510738432 root 5 owner 3849475 offset
> 0 found 1
>    Backref 128510738432 root 5 owner 3849475 offset 0 num_refs 0 not
> found in extent tree
>    Incorrect local backref count on 128510738432 root 5 owner 3849475
> offset 0 found 1 wanted 0 back 0xbbcb9630
>    backpointer mismatch on [128510738432 4096]
>    ref mismatch on [128510742528 12288] extent item 0, found 1
>    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
> & 1)' failed.
> 
>    $ sudo btrfsck --repair /dev/loop0p1
>    Incorrect local backref count on 130861096960 root 5 owner 22733727
> offset 0 found 1 wanted 0 back 0xc7c7d170
>    backpointer mismatch on [130861096960 8192]
>    ref mismatch on [130861105152 8192] extent item 0, found 1
>    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
> & 1)' failed.
> 
>    $ sudo btrfsck --repair /dev/loop0p1
>    Backref 130861096960 root 5 owner 22733727 offset 0 num_refs 0 not
> found in extent tree
>    Incorrect local backref count on 130861096960 root 5 owner 22733727
> offset 0 found 1 wanted 0 back 0xc7f31170
>    backpointer mismatch on [130861096960 8192]
>    ref mismatch on [130861105152 8192] extent item 0, found 1
>    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
> & 1)' failed.
> 
> I'm using `btrfs-progs` 24cf4d8c3ee924b474f68514e0167cc2e602a48d on
> Linux 3.16-rc5 (anything else, i.e. older versions, give me immediate
> error after start because errornous file system)
> 
> I'd like to know whether this (assertion) error is related to a bug or
> missing feature in btrfs-progs and might be fixed at some point or
> whether this might indicate a completely messed up btrfs.
> 
> Best regards,
> Karl-P. Richter
> 


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

* Re: `btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags & 1)' failed.` in `btrfsck`
  2014-07-18 12:13 ` Wang Shilong
@ 2014-07-21 18:02   ` Karl-Philipp Richter
  0 siblings, 0 replies; 3+ messages in thread
From: Karl-Philipp Richter @ 2014-07-21 18:02 UTC (permalink / raw)
  To: Wang Shilong; +Cc: linux-btrfs

[-- Attachment #1: Type: text/plain, Size: 3376 bytes --]

Hi,
I could `btrfsck --repair` the sparse file with Linux 3.15.6-utopic from
http://kernel.ubuntu.com/~kernel-ppa/mainline/ and btrfsck 3.12-1 (from
btrfs-tools package in Ubuntu 14.04).

Thanks for your hints, Wang!

All the best,
Karl

Am 18.07.2014 14:13, schrieb Wang Shilong:
> 
> Hi,
> 
> There are some patches for fsck flighting, they  are integrated  in David's branches.
> You can pull from David's latest branch, and see if it helps:
> 
> https://github.com/kdave/btrfs-progs  integration-20140704
> 
> Have a try and see if it helps anyway.
> 
> Thanks,
> Wang
> 
>> Hi together,
>> I'm experiencing the following issues when I invoke `btrfsck` on a
>> sparse file image with a GPT and one (the only) btrfs partition attached
>> to a loop device
>>
>>    $ sudo btrfsck --repair --init-csum-tree --init-extent-tree -b
>> /dev/loop0p1
>>    Incorrect local backref count on 128510738432 root 5 owner 3849475
>> offset 0 found 1 wanted 0 back 0xbab41270
>>    backpointer mismatch on [128510738432 4096]
>>    ref mismatch on [128510742528 12288] extent item 0, found 1
>>    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
>> & 1)' failed.
>>
>>    $ sudo btrfsck --repair --init-csum-tree --init-extent-tree /dev/loop0p1
>>    Incorrect local backref count on 128510726144 root 5 owner 3849470
>> offset 0 found 1 wanted 0 back 0xbbcb9500
>>    backpointer mismatch on [128510726144 12288]
>>    ref mismatch on [128510738432 4096] extent item 0, found 1
>>    adding new data backref on 128510738432 root 5 owner 3849475 offset
>> 0 found 1
>>    Backref 128510738432 root 5 owner 3849475 offset 0 num_refs 0 not
>> found in extent tree
>>    Incorrect local backref count on 128510738432 root 5 owner 3849475
>> offset 0 found 1 wanted 0 back 0xbbcb9630
>>    backpointer mismatch on [128510738432 4096]
>>    ref mismatch on [128510742528 12288] extent item 0, found 1
>>    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
>> & 1)' failed.
>>
>>    $ sudo btrfsck --repair /dev/loop0p1
>>    Incorrect local backref count on 130861096960 root 5 owner 22733727
>> offset 0 found 1 wanted 0 back 0xc7c7d170
>>    backpointer mismatch on [130861096960 8192]
>>    ref mismatch on [130861105152 8192] extent item 0, found 1
>>    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
>> & 1)' failed.
>>
>>    $ sudo btrfsck --repair /dev/loop0p1
>>    Backref 130861096960 root 5 owner 22733727 offset 0 num_refs 0 not
>> found in extent tree
>>    Incorrect local backref count on 130861096960 root 5 owner 22733727
>> offset 0 found 1 wanted 0 back 0xc7f31170
>>    backpointer mismatch on [130861096960 8192]
>>    ref mismatch on [130861105152 8192] extent item 0, found 1
>>    btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags
>> & 1)' failed.
>>
>> I'm using `btrfs-progs` 24cf4d8c3ee924b474f68514e0167cc2e602a48d on
>> Linux 3.16-rc5 (anything else, i.e. older versions, give me immediate
>> error after start because errornous file system)
>>
>> I'd like to know whether this (assertion) error is related to a bug or
>> missing feature in btrfs-progs and might be fixed at some point or
>> whether this might indicate a completely messed up btrfs.
>>
>> Best regards,
>> Karl-P. Richter
>>
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 538 bytes --]

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

end of thread, other threads:[~2014-07-21 18:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-18 12:01 `btrfsck: extent_io.c:612: free_extent_buffer: Assertion `!(eb->flags & 1)' failed.` in `btrfsck` Karl-Philipp Richter
2014-07-18 12:13 ` Wang Shilong
2014-07-21 18:02   ` Karl-Philipp Richter

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