mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43: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
|
@ -780,7 +780,7 @@ static int block_load(QEMUFile *f, void *opaque, int version_id)
|
|||
}
|
||||
|
||||
if (flags & BLK_MIG_FLAG_ZERO_BLOCK) {
|
||||
ret = bdrv_write_zeroes(bs, addr, nr_sectors);
|
||||
ret = bdrv_write_zeroes(bs, addr, nr_sectors, 0);
|
||||
} else {
|
||||
buf = g_malloc(BLOCK_SIZE);
|
||||
qemu_get_buffer(f, buf, BLOCK_SIZE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue