[Top][All Lists]

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

Re: [Qemu-discuss] [Qemu-devel] Estimation of qcow2 image size converted

From: Eric Blake
Subject: Re: [Qemu-discuss] [Qemu-devel] Estimation of qcow2 image size converted from raw image
Date: Wed, 15 Feb 2017 09:34:08 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

On 02/15/2017 09:20 AM, Daniel P. Berrange wrote:
>> Let's try this syntax:
>>   $ qemu-img query-max-size -f raw -O qcow2 input.raw
>>   1234678000
>> As John explained, it is only an estimate.  But it will be a
>> conservative maximum.
> This forces you to have an input file. It would be nice to be able to
> get the same information by merely giving the desired capacity e.g
>   $ qemu-img query-max-size -O qcow2 20G

We'd need an option to tell the difference between size and pre-existing
file, if we want to support both ways.  Maybe:

qemu-img query-max-size -O qcow2 --size 20G
qemu-img query-max-size -O qcow2 -f raw input.raw

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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