Skip to content
Commit 27ed14c4 authored by Fam Zheng's avatar Fam Zheng Committed by Michael Roth
Browse files

mirror: Do zero write on target if sectors not allocated



If guest discards a source cluster, mirroring with bdrv_aio_readv is overkill.
Some protocols do zero upon discard, where it's best to use
bdrv_aio_write_zeroes, otherwise, bdrv_aio_discard will be enough.

Signed-off-by: default avatarFam Zheng <famz@redhat.com>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit dcfb3beb)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 6a45a1b8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment