diff options
author | Kevin Wolf | 2016-06-16 15:13:15 +0200 |
---|---|---|
committer | Kevin Wolf | 2016-07-05 16:46:27 +0200 |
commit | 720ff280e73ebdc6751a9c5ae741fdcdd092a5a0 (patch) | |
tree | 0549da31d6b69c0c9905d16932dbe705d29d7aa5 /include/block/block.h | |
parent | block: Convert bdrv_pwrite(v/_sync) to BdrvChild (diff) | |
download | qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.tar.gz qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.tar.xz qemu-720ff280e73ebdc6751a9c5ae741fdcdd092a5a0.zip |
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 'include/block/block.h')
-rw-r--r-- | include/block/block.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/block/block.h b/include/block/block.h index 59fd20b101..4eaa1c1325 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -230,9 +230,9 @@ int bdrv_read(BdrvChild *child, int64_t sector_num, uint8_t *buf, int nb_sectors); int bdrv_write(BdrvChild *child, int64_t sector_num, const uint8_t *buf, int nb_sectors); -int bdrv_pwrite_zeroes(BlockDriverState *bs, int64_t offset, +int bdrv_pwrite_zeroes(BdrvChild *child, int64_t offset, int count, BdrvRequestFlags flags); -int bdrv_make_zero(BlockDriverState *bs, BdrvRequestFlags flags); +int bdrv_make_zero(BdrvChild *child, BdrvRequestFlags flags); int bdrv_pread(BdrvChild *child, int64_t offset, void *buf, int bytes); int bdrv_preadv(BdrvChild *child, int64_t offset, QEMUIOVector *qiov); int bdrv_pwrite(BdrvChild *child, int64_t offset, const void *buf, int bytes); |