mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-28 23:24:36 -07:00
block: bdrv_has_zero_init
This fixes the problem that qemu-img's use of no_zero_init only considered the no_zero_init flag of the format driver, but not of the underlying protocols. Between the raw/file split and this fix, converting to host devices is broken. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
66f82ceed6
commit
f2feebbd93
3 changed files with 18 additions and 2 deletions
1
block.h
1
block.h
|
|
@ -122,6 +122,7 @@ BlockDriverAIOCB *bdrv_aio_ioctl(BlockDriverState *bs,
|
|||
void bdrv_flush(BlockDriverState *bs);
|
||||
void bdrv_flush_all(void);
|
||||
|
||||
int bdrv_has_zero_init(BlockDriverState *bs);
|
||||
int bdrv_is_allocated(BlockDriverState *bs, int64_t sector_num, int nb_sectors,
|
||||
int *pnum);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue