Debian Bug report logs - #854489
btrfs-progs: please stop shipping btrfs-convert

version graph

Package: btrfs-progs; Maintainer for btrfs-progs is Adam Borowski <kilobyte@angband.pl>; Source for btrfs-progs is src:btrfs-progs (PTS, buildd, popcon).

Reported by: Robert Schindler <robert@shajil.de>

Date: Tue, 7 Feb 2017 17:09:01 UTC

Severity: important

Tags: upstream

Found in version btrfs-progs/4.7.3-1

Fixed in version btrfs-progs/4.12-1

Done: Dimitri John Ledkov <xnox@ubuntu.com>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, robert@shajil.de, Dimitri John Ledkov <xnox@debian.org>:
Bug#854489; Package btrfs-progs. (Tue, 07 Feb 2017 17:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to Robert Schindler <robert@shajil.de>:
New Bug report received and forwarded. Copy sent to robert@shajil.de, Dimitri John Ledkov <xnox@debian.org>. (Tue, 07 Feb 2017 17:09:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Robert Schindler <robert@shajil.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: btrfs-progs: btrfs-convert fails converting from ext4
Date: Tue, 07 Feb 2017 18:07:38 +0100
Package: btrfs-progs
Version: 4.7.3-1
Severity: important
Tags: upstream

Dear Maintainer,

I tried to convert an ext4 file system to btrfs. The disk is 2 TiB in
size with ~500 GiB used. The file system sits inside a LUKS container.

After ~15 minutes of heavy disk I/O it aborted:

nas# btrfs-convert -L /dev/mapper/media
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[0x4130c8]
btrfs-convert(btrfs_reserve_extent+0x5c9)[0x41728f]
btrfs-convert(btrfs_alloc_free_block+0x63)[0x41762c]
btrfs-convert[0x40ce89]
btrfs-convert(btrfs_search_slot+0x698)[0x40dc41]
btrfs-convert(btrfs_csum_file_block+0x26b)[0x41bdc7]
btrfs-convert[0x432528]
btrfs-convert(main+0x11c4)[0x409352]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fa4e8bd02b1]
btrfs-convert(_start+0x2a)[0x40a67a]
nas# echo $?
1

After this, the ext4 is still intact.

Best regards,
Robert


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages btrfs-progs depends on:
ii  e2fslibs    1.43.3-1
ii  libblkid1   2.29.1-1
ii  libc6       2.24-9
ii  libcomerr2  1.43.3-1
ii  liblzo2-2   2.08-1.2
ii  libuuid1    2.29.1-1
ii  zlib1g      1:1.2.8.dfsg-5

btrfs-progs recommends no packages.

btrfs-progs suggests no packages.

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Dimitri John Ledkov <xnox@debian.org>:
Bug#854489; Package btrfs-progs. (Tue, 21 Feb 2017 14:18:03 GMT) (full text, mbox, link).


Acknowledgement sent to Hideki Yamane <henrich@debian.or.jp>:
Extra info received and forwarded to list. Copy sent to Dimitri John Ledkov <xnox@debian.org>. (Tue, 21 Feb 2017 14:18:03 GMT) (full text, mbox, link).


Message #10 received at 854489@bugs.debian.org (full text, mbox, reply):

From: Hideki Yamane <henrich@debian.or.jp>
To: 854489@bugs.debian.org
Subject: Re: btrfs-progs: btrfs-convert fails converting from ext4
Date: Tue, 21 Feb 2017 22:44:37 +0900
On Tue, 07 Feb 2017 18:07:38 +0100 Robert Schindler <robert@shajil.de> wrote:
> I tried to convert an ext4 file system to btrfs. The disk is 2 TiB in
> size with ~500 GiB used. The file system sits inside a LUKS container.

 It still happens with 4.9.1-1, tried to convert ext4 to btrfs, not on
 LUKS.

henrich@bugtestvm20170215:~$ btrfs version
btrfs-progs v4.9.1

henrich@bugtestvm20170215:~$ sudo btrfs-convert -L -p /dev/sdc1

Unable to find block group for 0
extent-tree.c:289: find_search_start: Warning: assertion `1` failed, value 1
btrfs-convert(+0x14abd)[0x55b0b1036abd]
btrfs-convert(btrfs_reserve_extent+0x5b2)[0x55b0b103aca6]
btrfs-convert(btrfs_alloc_free_block+0x63)[0x55b0b103b064]
btrfs-convert(+0xe8fd)[0x55b0b10308fd]
btrfs-convert(btrfs_search_slot+0x416)[0x55b0b1031454]
btrfs-convert(btrfs_csum_file_block+0x24f)[0x55b0b103fbee]
btrfs-convert(+0x358df)[0x55b0b10578df]
btrfs-convert(main+0x1135)[0x55b0b102cd94]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fc27062b2b1]
btrfs-convert(_start+0x2a)[0x55b0b102e02a]
Unable to find block group for 0
extent-tree.c:289: find_search_start: Warning: assertion `1` failed, value 1
btrfs-convert(+0x14abd)[0x55b0b1036abd]
btrfs-convert(btrfs_reserve_extent+0x5b2)[0x55b0b103aca6]
btrfs-convert(btrfs_alloc_free_block+0x63)[0x55b0b103b064]
btrfs-convert(+0xe8fd)[0x55b0b10308fd]
btrfs-convert(btrfs_search_slot+0x416)[0x55b0b1031454]
btrfs-convert(btrfs_csum_file_block+0x24f)[0x55b0b103fbee]
btrfs-convert(+0x358df)[0x55b0b10578df]
btrfs-convert(main+0x1135)[0x55b0b102cd94]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fc27062b2b1]
btrfs-convert(_start+0x2a)[0x55b0b102e02a]
Unable to find block group for 0
extent-tree.c:289: find_search_start: Warning: assertion `1` failed, value 1
btrfs-convert(+0x14abd)[0x55b0b1036abd]
btrfs-convert(btrfs_reserve_extent+0x5b2)[0x55b0b103aca6]
btrfs-convert(btrfs_alloc_free_block+0x63)[0x55b0b103b064]
btrfs-convert(+0xe8fd)[0x55b0b10308fd]
btrfs-convert(btrfs_search_slot+0x416)[0x55b0b1031454]
btrfs-convert(btrfs_csum_file_block+0x24f)[0x55b0b103fbee]
btrfs-convert(+0x358df)[0x55b0b10578df]
btrfs-convert(main+0x1135)[0x55b0b102cd94]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fc27062b2b1]
btrfs-convert(_start+0x2a)[0x55b0b102e02a]
extent-tree.c:2703: btrfs_reserve_extent: BUG_ON `ret` triggered, value -28
btrfs-convert(+0x14abd)[0x55b0b1036abd]
btrfs-convert(+0x14b27)[0x55b0b1036b27]
btrfs-convert(+0x14b3a)[0x55b0b1036b3a]
btrfs-convert(btrfs_reserve_extent+0x765)[0x55b0b103ae59]
btrfs-convert(btrfs_alloc_free_block+0x63)[0x55b0b103b064]
btrfs-convert(+0xe8fd)[0x55b0b10308fd]
btrfs-convert(btrfs_search_slot+0x416)[0x55b0b1031454]
btrfs-convert(btrfs_csum_file_block+0x24f)[0x55b0b103fbee]
btrfs-convert(+0x358df)[0x55b0b10578df]
btrfs-convert(main+0x1135)[0x55b0b102cd94]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x7fc27062b2b1]
btrfs-convert(_start+0x2a)[0x55b0b102e02a]
create btrfs filesystem:
	blocksize: 4096
	nodesize:  16384
	features:  extref, skinny-metadata (default)
creating ext2 image file

henrich@bugtestvm20170215:~$ sudo mount /home/henrich/data

henrich@bugtestvm20170215:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.4G     0  3.4G   0% /dev
tmpfs           698M   73M  625M  11% /run
/dev/sda1        30G  2.0G   26G   7% /
tmpfs           3.5G     0  3.5G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.5G     0  3.5G   0% /sys/fs/cgroup
/dev/sdb1        14G   35M   13G   1% /mnt/resource
tmpfs           698M     0  698M   0% /run/user/1000
/dev/sdc1      1007G  588G  369G  62% /home/henrich/data



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#854489; Package btrfs-progs. (Tue, 21 Feb 2017 14:27:03 GMT) (full text, mbox, link).


Acknowledgement sent to Dimitri John Ledkov <xnox@debian.org>:
Extra info received and forwarded to list. (Tue, 21 Feb 2017 14:27:03 GMT) (full text, mbox, link).


Message #15 received at 854489@bugs.debian.org (full text, mbox, reply):

From: Dimitri John Ledkov <xnox@debian.org>
To: Hideki Yamane <henrich@debian.or.jp>, 854489@bugs.debian.org
Subject: Re: Bug#854489: btrfs-progs: btrfs-convert fails converting from ext4
Date: Tue, 21 Feb 2017 14:24:04 +0000
On 21 February 2017 at 13:44, Hideki Yamane <henrich@debian.or.jp> wrote:
> On Tue, 07 Feb 2017 18:07:38 +0100 Robert Schindler <robert@shajil.de> wrote:
>> I tried to convert an ext4 file system to btrfs. The disk is 2 TiB in
>> size with ~500 GiB used. The file system sits inside a LUKS container.
>
>  It still happens with 4.9.1-1, tried to convert ext4 to btrfs, not on
>  LUKS.
>

btrfs-convert is no longer supported / recommended upstream to use.

I wonder if we should still ship it in Debian at all.

You are much better off doing a backup and restore, to migrate from
ext4 -> btrfs.

See warning at: https://btrfs.wiki.kernel.org/index.php/Conversion_from_Ext3

Regards,

Dimitri.



Information forwarded to debian-bugs-dist@lists.debian.org, Dimitri John Ledkov <xnox@debian.org>:
Bug#854489; Package btrfs-progs. (Wed, 05 Apr 2017 07:03:09 GMT) (full text, mbox, link).


Acknowledgement sent to Balint Reczey <balint.reczey@canonical.com>:
Extra info received and forwarded to list. Copy sent to Dimitri John Ledkov <xnox@debian.org>. (Wed, 05 Apr 2017 07:03:10 GMT) (full text, mbox, link).


Message #20 received at 854489@bugs.debian.org (full text, mbox, reply):

From: Balint Reczey <balint.reczey@canonical.com>
To: 854489@bugs.debian.org
Subject: Re: Bug#854489: btrfs-progs: btrfs-convert fails converting from ext4
Date: Wed, 5 Apr 2017 09:00:11 +0200
Control: retitle -1 btrfs-progs: please stop shipping btrfs-convert

On Tue, 21 Feb 2017 14:24:04 +0000 Dimitri John Ledkov <xnox@debian.org>
wrote:
> On 21 February 2017 at 13:44, Hideki Yamane <henrich@debian.or.jp> wrote:
> > On Tue, 07 Feb 2017 18:07:38 +0100 Robert Schindler <robert@shajil.de> wrote:
> >> I tried to convert an ext4 file system to btrfs. The disk is 2 TiB in
> >> size with ~500 GiB used. The file system sits inside a LUKS container.
> >
> >  It still happens with 4.9.1-1, tried to convert ext4 to btrfs, not on
> >  LUKS.
> >
> 
> btrfs-convert is no longer supported / recommended upstream to use.
> 
> I wonder if we should still ship it in Debian at all.
> 
> You are much better off doing a backup and restore, to migrate from
> ext4 -> btrfs.
> 
> See warning at: https://btrfs.wiki.kernel.org/index.php/Conversion_from_Ext3

I think not shipping it would be a better service for our users.

-- 
Balint Reczey
Debian & Ubuntu Developer



Changed Bug title to 'btrfs-progs: please stop shipping btrfs-convert' from 'btrfs-progs: btrfs-convert fails converting from ext4'. Request was from Balint Reczey <balint.reczey@canonical.com> to 854489-submit@bugs.debian.org. (Wed, 05 Apr 2017 07:03:10 GMT) (full text, mbox, link).


Reply sent to Dimitri John Ledkov <xnox@ubuntu.com>:
You have taken responsibility. (Mon, 31 Jul 2017 15:21:09 GMT) (full text, mbox, link).


Notification sent to Robert Schindler <robert@shajil.de>:
Bug acknowledged by developer. (Mon, 31 Jul 2017 15:21:09 GMT) (full text, mbox, link).


Message #27 received at 854489-close@bugs.debian.org (full text, mbox, reply):

From: Dimitri John Ledkov <xnox@ubuntu.com>
To: 854489-close@bugs.debian.org
Subject: Bug#854489: fixed in btrfs-progs 4.12-1
Date: Mon, 31 Jul 2017 15:19:08 +0000
Source: btrfs-progs
Source-Version: 4.12-1

We believe that the bug you reported is fixed in the latest version of
btrfs-progs, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 854489@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Dimitri John Ledkov <xnox@ubuntu.com> (supplier of updated btrfs-progs package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 31 Jul 2017 15:18:39 +0100
Source: btrfs-progs
Binary: btrfs-progs btrfs-tools btrfs-progs-udeb
Architecture: amd64 source
Version: 4.12-1
Distribution: unstable
Urgency: medium
Maintainer: Dimitri John Ledkov <xnox@debian.org>
Changed-By: Dimitri John Ledkov <xnox@ubuntu.com>
Closes: 824895 854489
Description: 
 btrfs-progs - Checksumming Copy on Write Filesystem utilities
 btrfs-progs-udeb - Checksumming Copy on Write Filesystem utilities (udeb) (udeb)
 btrfs-tools - transitional dummy package
Changes:
 btrfs-progs (4.12-1) unstable; urgency=medium
 .
   [ Dimitri John Ledkov ]
   * New upstream release.
   * Update watch file to v4.
 .
   [ Nicholas D Steeves ]
   * Override dh_auto_clean to work around upstream bug where make clean cannot be run before ./configure
   * Drop btrfs-convert (Closes: #824895, #854489)
   * Update Source, because Chris Mason's branch hasn't been updated since v4.4
   * 4.6.1-1 did not fix package license Btrfs-progs is explicitly GPL2 and not GPL2+.
   * Update copyright for new locations of: radix-tree.c and radix-tree.h
   * d/control: add whitespace (cosmetic fix)
   * Switch to debhelper 10 and automatically generated -dbgsym package
Checksums-Sha1: 
 8c26f1041da48f22d0a2f91290766dbe6f86dc2a 1897 btrfs-progs_4.12-1.dsc
 d033224f0e1d37d04278d0e5e03d2137846c77fb 1587604 btrfs-progs_4.12.orig.tar.xz
 d97bae6422705a9ca807471f8e122bc9fb2f98aa 14588 btrfs-progs_4.12-1.debian.tar.xz
 13973ed7ffc82bb48e0568f1eb040fb114522122 4227924 btrfs-progs-dbgsym_4.12-1_amd64.deb
 7502b0fd8e2a12698425ea028a4b46be3038e38e 342300 btrfs-progs-udeb_4.12-1_amd64.udeb
 32a8becda92d3010a78c350c1c2cddcc1c0f97b4 6244 btrfs-progs_4.12-1_amd64.buildinfo
 9300965540a1cf7d56c170b0b581990bdd08e8c5 620346 btrfs-progs_4.12-1_amd64.deb
 f2287b7994555b6da7caa3def995842619069968 19468 btrfs-tools_4.12-1_amd64.deb
Checksums-Sha256: 
 48dba72d6a48d5446b11e008dc33697c33aeb540f19fd3e80939cd46c654c0a2 1897 btrfs-progs_4.12-1.dsc
 917710c84a9d529c92038390ddf8ace19ad409f61cdcf93c38ccaf2678472ece 1587604 btrfs-progs_4.12.orig.tar.xz
 d6e932b5bca98edfcb75ac0680af0671aa061a8e34069b288140c657417154da 14588 btrfs-progs_4.12-1.debian.tar.xz
 e39a5f1107203108c5d3b17edb2055be004586b0b69b933ef5add968db8faf42 4227924 btrfs-progs-dbgsym_4.12-1_amd64.deb
 349a76697a5f0a10b50c70a07f7569b1bb5a0c7929a43ef7f29e8b3e076539b1 342300 btrfs-progs-udeb_4.12-1_amd64.udeb
 8dd0cc66a5f87b401dad94245184b2a1168036fb12fbc5cf694a58500ea00e36 6244 btrfs-progs_4.12-1_amd64.buildinfo
 381fde46e5f2c0859d9395cae4c5e25ee3887663183b06b65b7b2583d24252f2 620346 btrfs-progs_4.12-1_amd64.deb
 729d0bd0026b1bbbfa917d02f3b73e12fbd3b628c95edd3f25b0aced2e837e7f 19468 btrfs-tools_4.12-1_amd64.deb
Files: 
 6614c9d1414bd42d2390b791ae7463a0 1897 admin optional btrfs-progs_4.12-1.dsc
 4b1a143677597de413381118db8c10bb 1587604 admin optional btrfs-progs_4.12.orig.tar.xz
 5b7ba79ebad3d110b6cb8247b50be49d 14588 admin optional btrfs-progs_4.12-1.debian.tar.xz
 2d2a4fc55c41ff5c7dac6fbb0bd8da28 4227924 debug extra btrfs-progs-dbgsym_4.12-1_amd64.deb
 533936b3f6f2223499a7be60a178a867 342300 debian-installer optional btrfs-progs-udeb_4.12-1_amd64.udeb
 0939afec4641e39674ecb2ccacbdf028 6244 admin optional btrfs-progs_4.12-1_amd64.buildinfo
 31eb2308a8ac2b9c7971db8a91a28893 620346 admin optional btrfs-progs_4.12-1_amd64.deb
 a2e28315c7bb2198c0ed8061c3864e50 19468 oldlibs optional btrfs-tools_4.12-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJZf0dVAAoJEMrC2LnNLKX560wH/1+39qXpl62d9kS0kt6vcHMo
qqqE8HGw4h/6JizPmB6UGqm5HUcALtZNLzrTQyqZGurKjVv1FPlOaaaiyg9pD0aK
8OkvI+bNj2QM1C8gVdk/FkxuwXKNPz83TAMWyQn3YIC0sR4jVxWc6jKFdfvK5k1B
yHMZXhgfPdBT3gkPSF5fYfGU4NHXvmyYd5g/U0h/cu0M/WNrxauGx4odEzXgGRc2
6UdyA3Vc9wKbhm5LdpDOPFciorqFR5/DrsMbI8kkjrjeDoKElA/cexjsF3FoisIi
Js3bm8rG94ByvozrhV22PfQW3vXUV/HVlGVsdYS+xv+iSwpPzOMbwzLChmLcRVU=
=I7ui
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 03 Sep 2017 07:43:56 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Thu Jul 23 23:05:49 2020; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.