On 27.04.2017 04:58, jemmy858...@gmail.com wrote: > From: Lidong Chen <lidongc...@tencent.com> > > When the buffer is zero, blk_co_pwrite_zeroes is more effective than > blk_co_pwritev with BDRV_REQ_WRITE_COMPRESSED. This patch can reduce > the time for converting qcow2 images with lots of zero data. > > Signed-off-by: Lidong Chen <lidongc...@tencent.com> > --- > v3 changelog: > fix some spelling errors and code style. > v2 changelog: > unify the compressed and non-compressed code paths. > --- > qemu-img.c | 44 ++++++++++++++------------------------------ > 1 file changed, 14 insertions(+), 30 deletions(-)
Thank you, I have applied the patch to my block branch: https://github.com/XanClic/qemu/commits/block Max
signature.asc
Description: OpenPGP digital signature