]> git.ipfire.org Git - thirdparty/qemu.git/commit
mirror: Reduce I/O when destination is detect-zeroes:unmap
authorEric Blake <eblake@redhat.com>
Tue, 13 May 2025 22:00:45 +0000 (17:00 -0500)
committerEric Blake <eblake@redhat.com>
Thu, 15 May 2025 02:27:04 +0000 (21:27 -0500)
commitaff46b4bf556430dd3c12fa39a457f0487bb0053
treedd2589298f4b38824775e835325060737683a33c
parentc0ddcb2cbc146e64f666eaae4edc7b5db7e5814d
mirror: Reduce I/O when destination is detect-zeroes:unmap

If we are going to punch holes in the mirror destination even for the
portions where the source image is unallocated, it is nicer to treat
the entire image as dirty and punch as we go, rather than pre-zeroing
the entire image just to re-do I/O to the allocated portions of the
image.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-ID: <20250513220142.535200-2-eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/mirror.c