Return-Path: Received: from mx2.suse.de ([195.135.220.15]:33970 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726689AbeIKVtQ (ORCPT ); Tue, 11 Sep 2018 17:49:16 -0400 Date: Tue, 11 Sep 2018 18:49:05 +0200 From: David Sterba To: Qu Wenruo Cc: dsterba@suse.cz, Tucker Boniface , linux-btrfs@vger.kernel.org Subject: Re: btrfs-progs: btrfs-convert: unable to find block group for 0 Message-ID: <20180911164905.GI2154@twin.jikos.cz> Reply-To: dsterba@suse.cz References: <20180911145258.GE2997@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: Sender: linux-btrfs-owner@vger.kernel.org List-ID: On Tue, Sep 11, 2018 at 08:55:30PM +0800, Qu Wenruo wrote: > > > On 2018/9/11 下午10:52, David Sterba wrote: > > On Tue, Aug 28, 2018 at 08:07:52AM +0800, Qu Wenruo wrote: > >> > >> > >> On 2018/8/28 上午6:33, Tucker Boniface wrote: > >>> Hello, I am trying to convert an ext4 partition to btrfs using > >>> btrfs-convert. I am running Arch Linux with kernel 4.18.5 and > >>> btrfs-progs 4.17.1. The full error is inline below. > >>> > >>> -> # btrfs-convert /dev/sda1 > >>> create btrfs filesystem: > >>>     blocksize: 4096 > >>>     nodesize:  16384 > >>>     features:  extref, skinny-metadata (default) > >>> creating ext2 image file > >>> Unable to find block group for 0 > >>> Unable to find block group for 0 > >>> Unable to find block group for 0 > >>> extent-tree.c:2743: alloc_tree_block: BUG_ON `ret` triggered, value -28 > >> > >> This means ENOSPC. > >> Your ext* doesn't have enough free space to contain btrfs' metadata. > > > > Can we do something better than a crash? The BUG_ON is in > > alloc_tree_block, there's only one caller btrfs_alloc_free_block that > > handles errors, so it should be straightforward to fix. > > > Already submitted: (about one month ago) > > https://patchwork.kernel.org/patch/10554575/ Yeah, thanks. I noticed the patch later on. Now in devel.