On Wed 15 Feb 2017 04:57:12 PM CET, Nir Soffer 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 > > Without a file, this will have to assume that all clusters will be > allocated.
...and that there are no internal snapshots. I'm not sure if this is very useful in general. Berto