diff options
author | Max Reitz <mreitz@redhat.com> | 2013-12-20 19:28:08 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2014-01-22 12:07:17 +0100 |
commit | 72daa72eeecb6b2ee06ab7d836ac3aa01ad7e6df (patch) | |
tree | ae24ab91dca7ea4e294b7b36f4f3e6fdd4d63908 /include | |
parent | 89f2b21e36cce948c39fa7cf24226f6e5f042cc8 (diff) | |
download | qemu-72daa72eeecb6b2ee06ab7d836ac3aa01ad7e6df.tar.gz qemu-72daa72eeecb6b2ee06ab7d836ac3aa01ad7e6df.tar.bz2 qemu-72daa72eeecb6b2ee06ab7d836ac3aa01ad7e6df.zip |
block: Allow reference for bdrv_file_open()
Allow specifying a reference to an existing block device (by name) for
bdrv_file_open() instead of a filename and/or options.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/block/block.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/block/block.h b/include/block/block.h index 36efaeac2d..e2b2a15f9a 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -184,7 +184,8 @@ void bdrv_append(BlockDriverState *bs_new, BlockDriverState *bs_top); int bdrv_parse_cache_flags(const char *mode, int *flags); int bdrv_parse_discard_flags(const char *mode, int *flags); int bdrv_file_open(BlockDriverState **pbs, const char *filename, - QDict *options, int flags, Error **errp); + const char *reference, QDict *options, int flags, + Error **errp); int bdrv_open_backing_file(BlockDriverState *bs, QDict *options, Error **errp); int bdrv_open(BlockDriverState *bs, const char *filename, QDict *options, int flags, BlockDriver *drv, Error **errp); |