Re: btrfs-progs: btrfs-convert: unable to find block group for 0
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.
Re: btrfs-progs: btrfs-convert: unable to find block group for 0
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/ Thanks, Qu signature.asc Description: OpenPGP digital signature
Re: btrfs-progs: btrfs-convert: unable to find block group for 0
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.
Re: btrfs-progs: btrfs-convert: unable to find block group for 0
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. Thanks, Qu > btrfs-convert(+0x1d512)[0x564d08cd3512] > btrfs-convert(btrfs_alloc_free_block+0x1e8)[0x564d08cda188] > btrfs-convert(+0x15bd1)[0x564d08ccbbd1] > btrfs-convert(btrfs_search_slot+0xf27)[0x564d08ccd7d7] > btrfs-convert(btrfs_csum_file_block+0x499)[0x564d08cdf219] > btrfs-convert(+0xe625)[0x564d08cc4625] > btrfs-convert(main+0x1abf)[0x564d08cc3adf] > /usr/lib/libc.so.6(__libc_start_main+0xf3)[0x7f1822576223] > btrfs-convert(_start+0x2e)[0x564d08cc41be] > Aborted signature.asc Description: OpenPGP digital signature
btrfs-progs: btrfs-convert: unable to find block group for 0
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 btrfs-convert(+0x1d512)[0x564d08cd3512] btrfs-convert(btrfs_alloc_free_block+0x1e8)[0x564d08cda188] btrfs-convert(+0x15bd1)[0x564d08ccbbd1] btrfs-convert(btrfs_search_slot+0xf27)[0x564d08ccd7d7] btrfs-convert(btrfs_csum_file_block+0x499)[0x564d08cdf219] btrfs-convert(+0xe625)[0x564d08cc4625] btrfs-convert(main+0x1abf)[0x564d08cc3adf] /usr/lib/libc.so.6(__libc_start_main+0xf3)[0x7f1822576223] btrfs-convert(_start+0x2e)[0x564d08cc41be] Aborted
btrfs-convert: Unable to find block group for 0
While trying to convert a ext4 filesystem to btrfs with the new btrfs-convert from btrfs-progs-4.6 I got the following error: create btrfs filesystem: blocksize: 4096 nodesize: 16384 features: extref, skinny-metadata (default) creating ext2 image file. Unable to find block group for 0 extent-tree.c:289: find_search_start: Assertion `1` failed. ./btrfs-convert(btrfs_reserve_extent+0x8e9)[0x41979d] ./btrfs-convert(btrfs_alloc_free_block+0x50)[0x419b27] ./btrfs-convert[0x40b8d8] ./btrfs-convert(btrfs_search_slot+0x13f7)[0x40d9d6] ./btrfs-convert(btrfs_csum_file_block+0x3b5)[0x41f144] ./btrfs-convert[0x4387b1] ./btrfs-convert(main+0x2013)[0x43d180] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fca6bb895f0] ./btrfs-convert(_start+0x29)[0x4082b9] Before I already tried btrfs-convert from btrfs-progs-4.5.2 which I accidentally aborted but until then seemed to run fine. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html