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
signature.asc
Description: OpenPGP digital signature