summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMax Reitz <mreitz@redhat.com>2014-02-18 18:33:06 +0100
committerKevin Wolf <kwolf@redhat.com>2014-02-21 21:02:22 +0100
commitddf5636dc9e4be894f2ab4a5f803d915478b5099 (patch)
tree4d5249e6d060518a471a244c02b90cac46ea4d85 /include
parentf67503e5bd8997ea7ec3f4bfa0af0e06321771a6 (diff)
downloadqemu-ddf5636dc9e4be894f2ab4a5f803d915478b5099.tar.gz
qemu-ddf5636dc9e4be894f2ab4a5f803d915478b5099.tar.bz2
qemu-ddf5636dc9e4be894f2ab4a5f803d915478b5099.zip
block: Add reference parameter to bdrv_open()
Allow bdrv_open() to handle references to existing block devices just as bdrv_file_open() is already capable of. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/block/block.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/block/block.h b/include/block/block.h
index 980869dd3f..a421041690 100644
--- a/include/block/block.h
+++ b/include/block/block.h
@@ -190,8 +190,9 @@ int bdrv_open_image(BlockDriverState **pbs, const char *filename,
QDict *options, const char *bdref_key, int flags,
bool force_raw, bool allow_none, Error **errp);
int bdrv_open_backing_file(BlockDriverState *bs, QDict *options, Error **errp);
-int bdrv_open(BlockDriverState **pbs, const char *filename, QDict *options,
- int flags, BlockDriver *drv, Error **errp);
+int bdrv_open(BlockDriverState **pbs, const char *filename,
+ const char *reference, QDict *options, int flags,
+ BlockDriver *drv, Error **errp);
BlockReopenQueue *bdrv_reopen_queue(BlockReopenQueue *bs_queue,
BlockDriverState *bs, int flags);
int bdrv_reopen_multiple(BlockReopenQueue *bs_queue, Error **errp);