From: David Sterba <dsterba@suse.cz>
To: "Torbjörn Jansson" <torbjorn@jansson.tech>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs-convert aborts with an assert
Date: Mon, 6 Jun 2022 16:34:48 +0200 [thread overview]
Message-ID: <20220606143448.GC20633@twin.jikos.cz> (raw)
In-Reply-To: <023b5ca9-0610-231b-fc4e-a72fe1377a5a@jansson.tech>
On Mon, Jun 06, 2022 at 04:03:33PM +0200, Torbjörn Jansson wrote:
> Hello
>
> i tried to do a btrfs-convert of a ext4 filesystem and after a short while
> after starting it i was greeted with:
>
> # btrfs-convert /dev/xxxx
> btrfs-convert from btrfs-progs v5.16.2
>
> convert/main.c:1162: do_convert: Assertion `cctx.total_bytes != 0` failed, value 0
> btrfs-convert(+0xffb0)[0x557defdabfb0]
> btrfs-convert(main+0x6c5)[0x557defdaa125]
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea)[0x7f66e1f8bd0a]
> btrfs-convert(_start+0x2a)[0x557defdab52a]
> Aborted
Please open an issue on github, thanks.
> Any idea whats going on?
> Is it a known bug?
> Is the btrfs-progs that come with my dist too old?
Two versions back is not that old, but there are bugfixes in each
release, so it's better to stay up to date.
> FYI the ext4 filesystem is a bit large ~10tb of used data on it.
This looks similar to another issue that caused weird checksum errors
(but no problems during conversion).
https://github.com/kdave/btrfs-progs/issues/349 the common point here is
thatt it's 2TB and a multiple in your case.
> I assume the convert didn't even start in this case and nothing was modified on
> the ext4 filesystem, correct? or?
Yeah, until the conversion is completely finished without errors, the
old ext4 is left intact and the new partial btrfs structures are not
recognized as a valid filesystem.
prev parent reply other threads:[~2022-06-06 14:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-06 14:03 btrfs-convert aborts with an assert Torbjörn Jansson
2022-06-06 14:14 ` Nikolay Borisov
2022-06-06 14:31 ` Nikolay Borisov
2022-06-06 15:00 ` Torbjörn Jansson
2022-06-06 15:21 ` Nikolay Borisov
2022-06-06 15:31 ` Torbjörn Jansson
2022-06-07 18:24 ` Chris Murphy
2022-06-09 17:55 ` Torbjörn Jansson
2022-06-06 14:34 ` David Sterba [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220606143448.GC20633@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=linux-btrfs@vger.kernel.org \
--cc=torbjorn@jansson.tech \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox