]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Add --target-is-zero to convert
authorDavid Edmondson <david.edmondson@oracle.com>
Wed, 5 Feb 2020 11:02:48 +0000 (11:02 +0000)
committerMax Reitz <mreitz@redhat.com>
Thu, 20 Feb 2020 15:43:42 +0000 (16:43 +0100)
commit168468fe19c872d31d17581e6a6cf7b69bd105b1
tree08c88e95d9c9797002d96c97e59bd33e9dd970da
parentfacda5443f5a8676fb635b82ac1046ac6b6a67ce
qemu-img: Add --target-is-zero to convert

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.edmondson@oracle.com>
Message-Id: <20200205110248.2009589-2-david.edmondson@oracle.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
docs/interop/qemu-img.rst
qemu-img-cmds.hx
qemu-img.c