From 07d27a442e01870ea6fc2d6ffbe1df61dccaafc4 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 29 Jun 2012 17:34:29 +0200 Subject: block: Factor bdrv_read_unthrottled() out of guess_disk_lchs() To prepare move of guess_disk_lchs() into hw/, where it poking BlockDriverState member io_limits_enabled directly would be unclean. Signed-off-by: Markus Armbruster Signed-off-by: Kevin Wolf --- block.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'block.h') diff --git a/block.h b/block.h index 3af93c6266..e34d94210d 100644 --- a/block.h +++ b/block.h @@ -142,6 +142,8 @@ bool bdrv_dev_is_tray_open(BlockDriverState *bs); bool bdrv_dev_is_medium_locked(BlockDriverState *bs); int bdrv_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors); +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_pread(BlockDriverState *bs, int64_t offset, -- cgit v1.2.1