diff options
author | Kevin Wolf <kwolf@redhat.com> | 2013-07-10 15:47:39 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-07-15 09:49:00 +0200 |
commit | 98289620e0460fa595581020ab20127da4a2fc44 (patch) | |
tree | c78493ac885f6c8e079ffd2a517de13807c5a7ef /tests/qemu-iotests/051.out | |
parent | de90930a0c45760e7523138fac57ff07312bf51d (diff) | |
download | qemu-98289620e0460fa595581020ab20127da4a2fc44.zip qemu-98289620e0460fa595581020ab20127da4a2fc44.tar.gz qemu-98289620e0460fa595581020ab20127da4a2fc44.tar.bz2 |
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 'tests/qemu-iotests/051.out')
-rw-r--r-- | tests/qemu-iotests/051.out | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/qemu-iotests/051.out b/tests/qemu-iotests/051.out index 3d1ac7b..6b3d636 100644 --- a/tests/qemu-iotests/051.out +++ b/tests/qemu-iotests/051.out @@ -169,4 +169,18 @@ Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: Can't use 'qcow2' as a block driver for the protocol level QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: could not open disk image TEST_DIR/t.qcow2: Invalid argument + +=== Parsing protocol from file name === + +Testing: -hda foo:bar +QEMU_PROG: -hda foo:bar: Unknown protocol +QEMU_PROG: -hda foo:bar: could not open disk image foo:bar: No such file or directory + +Testing: -drive file=foo:bar +QEMU_PROG: -drive file=foo:bar: Unknown protocol +QEMU_PROG: -drive file=foo:bar: could not open disk image foo:bar: No such file or directory + +Testing: -drive file.filename=foo:bar +QEMU_PROG: -drive file.filename=foo:bar: could not open disk image ide0-hd0: No such file or directory + *** done |