]> xenbits.xensource.com Git - osstest/qemu.git/commit
block: Don't parse 'filename' option
authorKevin Wolf <kwolf@redhat.com>
Thu, 3 Apr 2014 10:45:51 +0000 (12:45 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Apr 2014 15:10:25 +0000 (17:10 +0200)
commite3fa4bfa72d5037bfc1de95cf243d8c57e38f5da
tree73f9d0ba3037a4ae72f75fad5c2dd74f28d78a15
parent8885eadedd0ea8b57c1baa367ee2c2d616700bd9
block: Don't parse 'filename' option

When using the QDict option 'filename', it is supposed to be interpreted
literally. The code did correctly avoid guessing the protocol from any
string before the first colon, but it still called bdrv_parse_filename()
which would, for example, incorrectly remove a 'file:' prefix in the
raw-posix driver.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
block.c
tests/qemu-iotests/051
tests/qemu-iotests/051.out