aboutsummaryrefslogtreecommitdiff
path: root/include/sysemu/block-backend.h
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2015-03-19 13:33:31 +0100
committerKevin Wolf <kwolf@redhat.com>2015-04-28 15:36:08 +0200
commit0df89e8e6f62aea32a7302e73a86b7bfe5821018 (patch)
treec3b1ec0f9d74ccad5b0f51e4f07ce59c49102d1d /include/sysemu/block-backend.h
parenta0710f7995f914e3044e5899bd8ff6c43c62f916 (diff)
downloadqemu-0df89e8e6f62aea32a7302e73a86b7bfe5821018.zip
qemu-0df89e8e6f62aea32a7302e73a86b7bfe5821018.tar.gz
qemu-0df89e8e6f62aea32a7302e73a86b7bfe5821018.tar.bz2
block-backend: Expose bdrv_write_zeroes()
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include/sysemu/block-backend.h')
-rw-r--r--include/sysemu/block-backend.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h
index 77e9b9c..b4a4d5e 100644
--- a/include/sysemu/block-backend.h
+++ b/include/sysemu/block-backend.h
@@ -87,6 +87,8 @@ int blk_read_unthrottled(BlockBackend *blk, int64_t sector_num, uint8_t *buf,
int nb_sectors);
int blk_write(BlockBackend *blk, int64_t sector_num, const uint8_t *buf,
int nb_sectors);
+int blk_write_zeroes(BlockBackend *blk, int64_t sector_num,
+ int nb_sectors, BdrvRequestFlags flags);
BlockAIOCB *blk_aio_write_zeroes(BlockBackend *blk, int64_t sector_num,
int nb_sectors, BdrvRequestFlags flags,
BlockCompletionFunc *cb, void *opaque);