Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* Force remove of broken extent/subvolume? (Crash in btrfs_run_delayed_refs)
@ 2024-07-25 21:06 Emil.s
  2024-07-25 22:47 ` David Sterba
  0 siblings, 1 reply; 9+ messages in thread
From: Emil.s @ 2024-07-25 21:06 UTC (permalink / raw)
  To: linux-btrfs

Hello!

I got a corrupt filesystem due to backpointer mismatches:
---
[2/7] checking extents
data extent[780333588480, 942080] size mismatch, extent item size
925696 file item size 942080
backpointer mismatch on [780333588480 925696]
---

However only two extents seem to be affected, in a subvolume only used
for backups.

Since I've not been able to repair it, I thought that I could just
delete the subvolume and recreate it.
But now the btrfs_run_delayed_refs function crashes a while after
mounting the filesystem. (Which is quite obvious when I think about
it, since I guess it's trying to reclaim space, hitting the bad extent
in the process?)

Anyhow, is it possible to force removal of these extents in any way?
My understanding is that extents are mapped to a specific subvolume as
well?

Here is the full crash dump:
https://gist.github.com/sandnabba/e3ed7f57e4d32f404355fdf988fcfbff

Best regards

Emil Sandnabba

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

end of thread, other threads:[~2024-08-10 18:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-25 21:06 Force remove of broken extent/subvolume? (Crash in btrfs_run_delayed_refs) Emil.s
2024-07-25 22:47 ` David Sterba
2024-07-25 23:19   ` Qu Wenruo
2024-07-26 10:52     ` Emil.s
2024-07-27  0:42       ` Qu Wenruo
2024-07-28 16:09       ` Yuwei Han
2024-08-05  8:16         ` Emil.s
2024-08-05  8:59           ` Qu Wenruo
2024-08-10 18:39             ` Emil.s

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