aboutsummaryrefslogtreecommitdiff
path: root/block.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2012-06-29 17:34:29 +0200
committerKevin Wolf <kwolf@redhat.com>2012-07-09 17:21:02 +0200
commit07d27a442e01870ea6fc2d6ffbe1df61dccaafc4 (patch)
tree3c2095c04c07f4b4643498d61593824c9f22aaa2 /block.h
parentbb494a505e17dd06a07a662b8c800f255ac387c4 (diff)
downloadqemu-07d27a442e01870ea6fc2d6ffbe1df61dccaafc4.zip
qemu-07d27a442e01870ea6fc2d6ffbe1df61dccaafc4.tar.gz
qemu-07d27a442e01870ea6fc2d6ffbe1df61dccaafc4.tar.bz2
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 <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.h')
-rw-r--r--block.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/block.h b/block.h
index 3af93c6..e34d942 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,