qemu-img: Convert with copy offloading
commitee5306d0923377439776e8a30b9fd2de34b5cbfb
authorFam Zheng <famz@redhat.com>
Fri, 1 Jun 2018 09:26:48 +0000 (1 17:26 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 1 Jun 2018 13:41:48 +0000 (1 14:41 +0100)
tree061a45b9d394a5d6a8edf59ef16b19657e44a3ec
parentb5679fa49c9a70efa7bf01f6efad1a65e2349a0b
qemu-img: Convert with copy offloading

The new blk_co_copy_range interface offers a more efficient way in the
case of network based storage. Make use of it to allow faster convert
operation.

Since copy offloading cannot do zero detection ('-S') and compression
(-c), only try it when these options are not used.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 20180601092648.24614-11-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qemu-img.c