mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
block: add flags to bdrv_*_write_zeroes
Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Peter Lieven <pl@kamp.de> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
6faac15fa8
commit
aa7bfbfff7
11 changed files with 27 additions and 21 deletions
|
@ -442,7 +442,7 @@ static void coroutine_fn co_write_zeroes_entry(void *opaque)
|
|||
CoWriteZeroes *data = opaque;
|
||||
|
||||
data->ret = bdrv_co_write_zeroes(data->bs, data->offset / BDRV_SECTOR_SIZE,
|
||||
data->count / BDRV_SECTOR_SIZE);
|
||||
data->count / BDRV_SECTOR_SIZE, 0);
|
||||
data->done = true;
|
||||
if (data->ret < 0) {
|
||||
*data->total = data->ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue