diff options
author | Kevin Wolf | 2013-07-10 15:47:39 +0200 |
---|---|---|
committer | Kevin Wolf | 2013-07-15 09:49:00 +0200 |
commit | 98289620e0460fa595581020ab20127da4a2fc44 (patch) | |
tree | c78493ac885f6c8e079ffd2a517de13807c5a7ef /include/block/block.h | |
parent | block: add drive_backup HMP command (diff) | |
download | qemu-98289620e0460fa595581020ab20127da4a2fc44.tar.gz qemu-98289620e0460fa595581020ab20127da4a2fc44.tar.xz qemu-98289620e0460fa595581020ab20127da4a2fc44.zip |
block: Don't parse protocol from file.filename
One of the major reasons for doing something new for -blockdev and
blockdev-add was that the old block layer code parses filenames instead
of just taking them literally. So we should really leave it untouched
when it's passing using the new interfaces (like -drive
file.filename=...).
This allows opening relative file names that contain a colon.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/block/block.h')
-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 dd8eca1be1..eeb48162af 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -111,7 +111,8 @@ bool bdrv_io_limits_enabled(BlockDriverState *bs); void bdrv_init(void); void bdrv_init_with_whitelist(void); -BlockDriver *bdrv_find_protocol(const char *filename); +BlockDriver *bdrv_find_protocol(const char *filename, + bool allow_protocol_prefix); BlockDriver *bdrv_find_format(const char *format_name); BlockDriver *bdrv_find_whitelisted_format(const char *format_name, bool readonly); |