]> git.ipfire.org Git - thirdparty/qemu.git/commit - qemu-img.c
qemu-img: Use zero writes after source backing EOF
authorMax Reitz <mreitz@redhat.com>
Thu, 9 May 2019 17:52:36 +0000 (19:52 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 May 2019 14:45:40 +0000 (16:45 +0200)
commit1c6e87799252d166426f642c00be8927b68ab164
tree5c661f17867fdba8be5c26d285e974297b7dfca0
parent35ddd9300b81b70171da10134c36a7e22c845f16
qemu-img: Use zero writes after source backing EOF

Past the end of the source backing file, we memset() buf_old to zero, so
it is clearly easy to use blk_pwrite_zeroes() instead of blk_pwrite()
then.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img.c