summaryrefslogtreecommitdiff
path: root/include/block
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2016-04-26 17:28:25 +0200
committerKevin Wolf <kwolf@redhat.com>2016-05-12 15:22:08 +0200
commite3ddef25e93e7f00c2c407a6fb24b2c5dd26a43b (patch)
tree2b47989f0a4278da0ef9bdae8910a08d7c2302ec /include/block
parent4575eb496da8da595689b286e202929f06612585 (diff)
downloadqemu-e3ddef25e93e7f00c2c407a6fb24b2c5dd26a43b.zip
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 <kwolf@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r--include/block/block_int.h4
1 files changed, 0 insertions, 4 deletions
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);