diff options
author | Max Reitz | 2015-10-26 21:39:06 +0100 |
---|---|---|
committer | Kevin Wolf | 2015-11-11 16:22:46 +0100 |
commit | c69a4dd89989b483b06d765b13e41594c78d32b9 (patch) | |
tree | 30f9d00b6e2f186910e191c6eec97f6f20f8ecd8 /include/block | |
parent | block: Add blk_remove_bs() (diff) | |
download | qemu-c69a4dd89989b483b06d765b13e41594c78d32b9.tar.gz qemu-c69a4dd89989b483b06d765b13e41594c78d32b9.tar.xz qemu-c69a4dd89989b483b06d765b13e41594c78d32b9.zip |
block: Make bdrv_states public
When inserting a BDS tree into a BB, we will need to add the root BDS to
this list. Since we will want to do that in the blockdev-insert-medium
implementation in blockdev.c, we will need access to it there.
This patch is not exactly elegant, but bdrv_states will be removed in
the future anyway because we no longer need it since we have BBs.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block')
-rw-r--r-- | include/block/block_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/block/block_int.h b/include/block/block_int.h index 3ceeb5a940..6a3f64da12 100644 --- a/include/block/block_int.h +++ b/include/block/block_int.h @@ -473,6 +473,8 @@ extern BlockDriver bdrv_file; extern BlockDriver bdrv_raw; extern BlockDriver bdrv_qcow2; +extern QTAILQ_HEAD(BdrvStates, BlockDriverState) bdrv_states; + /** * bdrv_setup_io_funcs: * |