On 2/5/20 5:02 AM, David Edmondson wrote:
In many cases the target of a convert operation is a newly provisioned
target that the user knows is blank (reads as zero). In this situation
there is no requirement for qemu-img to wastefully zero out the entire
device.

Add a new option, --target-is-zero, allowing the user to indicate that
an existing target device will return zeros for all reads.

Signed-off-by: David Edmondson <david.edmond...@oracle.com>
---
  docs/interop/qemu-img.rst |  9 ++++++++-
  qemu-img-cmds.hx          |  4 ++--
  qemu-img.c                | 26 +++++++++++++++++++++++---
  3 files changed, 33 insertions(+), 6 deletions(-)

Reviewed-by: Eric Blake <ebl...@redhat.com>

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


Reply via email to