* [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc .
@ 2017-10-24 3:28 Changlimin
2017-10-25 7:22 ` Thomas Huth
0 siblings, 1 reply; 4+ messages in thread
From: Changlimin @ 2017-10-24 3:28 UTC (permalink / raw)
To: qemu-devel@nongnu.org
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
BR
Chang Limin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc .
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
0 siblings, 2 replies; 4+ messages in thread
From: Thomas Huth @ 2017-10-25 7:22 UTC (permalink / raw)
To: Changlimin, qemu-devel@nongnu.org; +Cc: Qemu-block, Max Reitz
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
Which version of qemu-img are you using? v2.10 or the latest git master
branch?
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc .
2017-10-25 7:22 ` Thomas Huth
@ 2017-10-25 7:26 ` Changlimin
2017-10-25 13:06 ` Max Reitz
1 sibling, 0 replies; 4+ messages in thread
From: Changlimin @ 2017-10-25 7:26 UTC (permalink / raw)
To: Thomas Huth, qemu-devel@nongnu.org; +Cc: Qemu-block, Max Reitz
The latest version from git e822e81e350825dd94f41ee2538ff1432b812eb9
Also ubuntu 17.10
-----Original Message-----
From: Thomas Huth [mailto:thuth@redhat.com]
Sent: Wednesday, October 25, 2017 3:22 PM
To: changlimin 00148 (Cloud); qemu-devel@nongnu.org
Cc: Qemu-block; Max Reitz
Subject: Re: [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc .
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
Which version of qemu-img are you using? v2.10 or the latest git master branch?
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] qemu-img crash when resize a qcow2 file created with preallocation=full/falloc .
2017-10-25 7:22 ` Thomas Huth
2017-10-25 7:26 ` Changlimin
@ 2017-10-25 13:06 ` Max Reitz
1 sibling, 0 replies; 4+ messages in thread
From: Max Reitz @ 2017-10-25 13:06 UTC (permalink / raw)
To: Thomas Huth, Changlimin, qemu-devel@nongnu.org; +Cc: Qemu-block
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-25 13:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).