From 4105eaaab9376ea959de711b81bba9e1494c971d Mon Sep 17 00:00:00 2001 From: Peter Lieven Date: Thu, 11 Jul 2013 14:16:22 +0200 Subject: block: add bdrv_write_zeroes() Signed-off-by: Peter Lieven Reviewed-by: Kevin Wolf Signed-off-by: Stefan Hajnoczi --- include/block/block.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/block/block.h b/include/block/block.h index b6b9014a9c..742fce5f7f 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -157,6 +157,8 @@ int bdrv_read_unthrottled(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors); int bdrv_write(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors); +int bdrv_write_zeroes(BlockDriverState *bs, int64_t sector_num, + int nb_sectors); int bdrv_writev(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov); int bdrv_pread(BlockDriverState *bs, int64_t offset, void *buf, int count); -- cgit v1.2.3