diff options
| author | Lidong Chen <lidongchen@tencent.com> | 2017-04-27 10:58:27 +0800 |
|---|---|---|
| committer | Max Reitz <mreitz@redhat.com> | 2017-04-28 18:18:23 +0200 |
| commit | db933fbe0646fb75f93bbb8eb7d4d9db31c4d345 (patch) | |
| tree | cdb444959877cc45166f17c6174835103afa1653 /util/qemu-thread-posix.c | |
| parent | 9f1b92add20d244677c916e77d840b6282f691ac (diff) | |
| download | focaccia-qemu-db933fbe0646fb75f93bbb8eb7d4d9db31c4d345.tar.gz focaccia-qemu-db933fbe0646fb75f93bbb8eb7d4d9db31c4d345.zip | |
qemu-img: use blk_co_pwrite_zeroes for zero sectors when compressed
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 <lidongchen@tencent.com> Message-id: 1493261907-18734-1-git-send-email-lidongchen@tencent.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'util/qemu-thread-posix.c')
0 files changed, 0 insertions, 0 deletions