block-raw is not a protocol
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 16 Sep 2008 13:21:58 +0000 (13:21 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 16 Sep 2008 13:21:58 +0000 (13:21 +0000)
commit6e7869e807eec146d4449be753f136fc4e4d4e97
treeb242abe1cd1a8f033fd11506b8b27b174e567327
parentc6a9f097c38c677182c240e8f67156883b95c8b4
block-raw is not a protocol

The protocol_name "file" was added to the block driver when async IO was
introduced.  This can be used to select that a file is treated as a raw
device instead of probing for the type.  However, protocols are not subject
to path interpretation which cases qcow2 images with raw base images to not
function is the path was specified relatively.

The fix is simply to remove the protocol_name from the raw block driver.  The
proper way to force the use of a raw block format is to use the format= option
with -drive.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5233 c046a42c-6fe2-441c-8c8c-71466251a162
block-raw-posix.c
block-raw-win32.c