diff options
author | Peter Lieven <pl@kamp.de> | 2015-02-02 14:52:20 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-02-06 17:24:21 +0100 |
commit | 454057b7d9b9ad141bd5df8c4075745e56b4870f (patch) | |
tree | acb4300628106ad87ee7cb9ab5fc2fb3525fd2b4 /block | |
parent | d901f3c457ade0b4934427c0e8608dea31610720 (diff) | |
download | qemu-454057b7d9b9ad141bd5df8c4075745e56b4870f.tar.gz qemu-454057b7d9b9ad141bd5df8c4075745e56b4870f.tar.bz2 qemu-454057b7d9b9ad141bd5df8c4075745e56b4870f.zip |
block-backend: expose bs->bl.max_transfer_length
Signed-off-by: Peter Lieven <pl@kamp.de>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/block-backend.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/block-backend.c b/block/block-backend.c index d00c129f15..c28e2402c7 100644 --- a/block/block-backend.c +++ b/block/block-backend.c @@ -580,6 +580,11 @@ int blk_get_flags(BlockBackend *blk) return bdrv_get_flags(blk->bs); } +int blk_get_max_transfer_length(BlockBackend *blk) +{ + return blk->bs->bl.max_transfer_length; +} + void blk_set_guest_block_size(BlockBackend *blk, int align) { bdrv_set_guest_block_size(blk->bs, align); |