From e3ddef25e93e7f00c2c407a6fb24b2c5dd26a43b Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Tue, 26 Apr 2016 17:28:25 +0200 Subject: block: Remove BlockDriver.bdrv_read/write There are no block drivers left that implement the old .bdrv_read/write interface, so it can be removed now. This gets us rid of the corresponding emulation functions, too. Signed-off-by: Kevin Wolf Reviewed-by: Fam Zheng --- include/block/block_int.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include') diff --git a/include/block/block_int.h b/include/block/block_int.h index 565f795758..c512074ce9 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -127,10 +127,6 @@ struct BlockDriver { Error **errp); int (*bdrv_file_open)(BlockDriverState *bs, QDict *options, int flags, Error **errp); - int (*bdrv_read)(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); void (*bdrv_close)(BlockDriverState *bs); int (*bdrv_create)(const char *filename, QemuOpts *opts, Error **errp); int (*bdrv_set_key)(BlockDriverState *bs, const char *key); -- cgit v1.2.3-55-g7522