[Libguestfs] [PATCH v6] v2v: Add --print-estimate option to print copy size estimate.

Pino Toscano ptoscano at redhat.com
Fri Aug 24 13:02:40 UTC 2018


On Friday, 24 August 2018 13:24:14 CEST Richard W.M. Jones wrote:
> This option prints the estimated size of the data that will be copied
> from the source disk.
> 
> Currently this overestimates by the size of the qcow2 header, but for
> real disk images that doesn't matter much.
> 
> For example:
> 
> $ virt-builder fedora-27
> $ virt-v2v -i disk fedora-27.img -o null --print-estimate
> [...]
> virt-v2v: This guest has virtio drivers installed.
> [  44.0] Mapping filesystem data to avoid copying unused and blank areas
> [  44.5] Closing the overlay
> disk 1: 1047920640
> total: 1047920640
> ---

The non-machine readable output could be better, but I guess I will send
a patch for it later ...

LGTM otherwise.

-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20180824/8a88cbda/attachment.sig>


More information about the Libguestfs mailing list