]> git.proxmox.com Git - qemu.git/commit
block: Make bdrv_create_file() ':' handling consistent
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Tue, 30 Nov 2010 15:14:14 +0000 (15:14 +0000)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Dec 2010 14:44:21 +0000 (15:44 +0100)
commit16905d717507d3daffa714c7f0fd5403873807b2
treeba841b455c5ea1e73b973d94073915ee687c5364
parent36888c6335422f07bbc50bf3443a39f24b90c7c6
block: Make bdrv_create_file() ':' handling consistent

Filenames may start with "<protocol>:" to explicitly use a protocol like
nbd.  Filenames with unknown protocols are rejected in most of QEMU
except for bdrv_create_file().  Even if a file with an invalid filename
can be created, QEMU cannot use it since all the other relevant
functions reject such paths.  Make bdrv_create_file() consistent.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c