From: Max Reitz <mreitz@redhat.com>
To: Thomas Huth <thuth@redhat.com>, Changlimin <changlimin@h3c.com>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: Qemu-block <qemu-block@nongnu.org>
Subject: Re: [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc .
Date: Wed, 25 Oct 2017 15:06:57 +0200 [thread overview]
Message-ID: <13fb8c1d-b0fd-b6a6-b983-049450af6bde@redhat.com> (raw)
In-Reply-To: <93ce91e1-d1cf-5781-c995-a2d82f5d515a@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 688 bytes --]
On 2017-10-25 09:22, Thomas Huth wrote:
> On 24.10.2017 05:28, Changlimin wrote:
>> Hi,
>> I am glad to see that qcow2 file created with preallocation=full/falloc can be resized. But when I test it, qemu-img crashs.
>> qemu-img: block/qcow2-refcount.c:530: qcow2_refcount_area: Assertion `!(start_offset % s->cluster_size)' failed.
>>
>> These are commands:
>> qemu-img create -f qcow2 -o preallocation=full full.img 1G
>> qemu-img resize --preallocation=full full.img +1G
Hi,
This should be fixed in my block branch
(https://github.com/XanClic/qemu/commits/block)
-- but unfortunately I haven't been able to send a pull request yet.
Thanks for the report!
Max
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 512 bytes --]
prev parent reply other threads:[~2017-10-25 13:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-24 3:28 [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc Changlimin
2017-10-25 7:22 ` Thomas Huth
2017-10-25 7:26 ` Changlimin
2017-10-25 13:06 ` Max Reitz [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=13fb8c1d-b0fd-b6a6-b983-049450af6bde@redhat.com \
--to=mreitz@redhat.com \
--cc=changlimin@h3c.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).