qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qcow2: Allow qcow2 disk images with size zero


From: Kevin Wolf
Subject: Re: [Qemu-devel] [PATCH] qcow2: Allow qcow2 disk images with size zero
Date: Tue, 27 Oct 2009 17:44:37 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.1) Gecko/20090814 Fedora/3.0-2.6.b3.fc11 Thunderbird/3.0b3

Am 27.10.2009 15:11, schrieb Anthony Liguori:
> Stefan Weil wrote:
>> Images with disk size 0 may be used for
>> VM snapshots, but not to save normal block data.
>>
>> It is possible to create such images using
>> qemu-img, but opening them later fails.
>>
>> So even "qemu-img info image.qcow2" is not
>> possible for an image created with
>> "qemu-img create -f qcow2 image.qcow2 0".
>>
>> This is fixed here.
>>
>> Signed-off-by: Stefan Weil <address@hidden>
>>   
> 
> What do you think Kevin?

That with malloc instead of qemu_malloc the patch would have been a bit
smaller. ;-) I think it can make sense to have such images in some cases
(although a 64k image isn't much worse) and I don't see any obvious
problem with the patch. Not sure how guests like 0 byte disks, but I
assume Stefan has tested that.

I'm just wondering how Stefan did create his test image - with current
qemu-img I can't create such images, so I needed to patch it first. For
this one I'll send a fix.

Kevin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]