Re: Crash, boot mount failure: "corrupt leaf, slot offset bad"

2016-02-04 Thread Chris Bainbridge
I had another btrfs crash with identical symptoms. This time I managed to reproduce the crash and identify the root cause. It turns out that the Apple boot firmware is buggy and leaves wifi DMA turned on, which randomly corrupts memory after Linux is running. https://bugzilla.kernel.org/show_bug.cg

Re: Crash, boot mount failure: "corrupt leaf, slot offset bad"

2016-01-05 Thread Chris Bainbridge
On Wed, Jan 06, 2016 at 08:57:28AM +0800, Qu Wenruo wrote: > > Since you took the image of the corrupted fs, would you please try the > following commands on the corrupted fs? > > $ btrfs-debug-tree -b 67239936 Command runs then segfaults: leaf 67239936 items 92 free space 9138 generation 2766

Re: Crash, boot mount failure: "corrupt leaf, slot offset bad"

2016-01-05 Thread Chris Bainbridge
On 5 January 2016 at 01:57, Qu Wenruo wrote: >> >> Data, single: total=106.79GiB, used=82.01GiB >> System, single: total=4.00MiB, used=16.00KiB >> Metadata, single: total=2.01GiB, used=1.51GiB >> GlobalReserve, single: total=512.00MiB, used=0.00B > > > That's the btrfs fi df misleading output conf

Crash, boot mount failure: "corrupt leaf, slot offset bad"

2016-01-04 Thread Chris Bainbridge
Kernel 4.4.0-rc7 System is Macbook with 109GB btrfs partition on SSD System crashed (nothing in syslog, could have been btrfs or possibly GPU fault shortly after running xrandr). After hard reset the btrfs partition was corrupt and would not mount. I took an image of the partition (some of the out