diff options
author | Kevin Wolf <kwolf@redhat.com> | 2016-06-16 15:13:15 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2016-07-05 16:46:27 +0200 |
commit | 720ff280e73ebdc6751a9c5ae741fdcdd092a5a0 (patch) | |
tree | 0549da31d6b69c0c9905d16932dbe705d29d7aa5 /qemu-img.c | |
parent | d9ca2ea2e261442c267f542953a5f3243e4f608e (diff) | |
download | qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.zip qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.tar.gz qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.tar.bz2 |
block: Convert bdrv_pwrite_zeroes() to BdrvChild
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1648,7 +1648,7 @@ static int convert_do_copy(ImgConvertState *s) if (!s->has_zero_init && !s->target_has_backing && bdrv_can_write_zeroes_with_unmap(blk_bs(s->target))) { - ret = bdrv_make_zero(blk_bs(s->target), BDRV_REQ_MAY_UNMAP); + ret = blk_make_zero(s->target, BDRV_REQ_MAY_UNMAP); if (ret == 0) { s->has_zero_init = true; } |