From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cn.fujitsu.com ([59.151.112.132]:42968 "EHLO heian.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751672AbbHYCvD (ORCPT ); Mon, 24 Aug 2015 22:51:03 -0400 Subject: Re: kernel BUG at fs/btrfs/extent-tree.c:8113! (4.1.3 kernel) To: Marc MERLIN References: <55CB631B.2080404@fb.com> <20150812160936.GK29259@merlins.org> <55CB71E5.1070302@fb.com> <20150812171912.GL29259@merlins.org> <55D1406C.9040607@cn.fujitsu.com> <20150817144904.GT29259@merlins.org> <20150822143746.GG5602@merlins.org> <55DA6F06.7030605@cn.fujitsu.com> <20150824042800.GJ5602@merlins.org> <55DAA77E.10105@cn.fujitsu.com> <20150824141013.GM5602@merlins.org> CC: Josef Bacik , , , From: Qu Wenruo Message-ID: <55DBD814.4000801@cn.fujitsu.com> Date: Tue, 25 Aug 2015 10:51:00 +0800 MIME-Version: 1.0 In-Reply-To: <20150824141013.GM5602@merlins.org> Content-Type: text/plain; charset="utf-8"; format=flowed Sender: linux-btrfs-owner@vger.kernel.org List-ID: Marc MERLIN wrote on 2015/08/24 07:10 -0700: > On Mon, Aug 24, 2015 at 01:11:26PM +0800, Qu Wenruo wrote: >> So, my last bet will be, using "btrfs-find-root -a" to find the root >> with highest generation, and use the new root to exec "btrfsck -b >> ". > >> The latest btrfs-find-root would output possible tree root by >> descending order of its generation. You'll find proper bytenr quite >> easy. >> But be prepared as "btrfs-find-root -a" will iterate all metadata >> space, so it will takes a long long time to finish. >> And until it scanned all the space, it won't output anything. > > This is what I got: > > myth:~# btrfs-find-root -a /dev/mapper/crypt_sdd1 > Superblock thinks the generation is 39538 > Superblock thinks the level is 1 > Well block 4243456(gen: 3 level: 0) seems good, but generation/level doesn't match, want gen: 39538 level: 1 > Well block 4194304(gen: 2 level: 0) seems good, but generation/level doesn't match, want gen: 39538 level: 1 > myth:~# > > Does it mean there is no other block I can/should use? > > Thanks, > Marc > Patches sent and CCed to you. Please try the two patches and see what's new. This time, I think the output will be much larger. Thanks, Qu