]> git.proxmox.com Git - qemu.git/commit - block.c
block: Assume raw for drives without media
authorKevin Wolf <kwolf@redhat.com>
Tue, 1 Jun 2010 16:37:31 +0000 (18:37 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Jun 2010 09:43:40 +0000 (11:43 +0200)
commit08a00559f00975cebcb3f844fe7c708d65b6a3b3
treeda79452d03ca6e088c3a1bd611c7fdae374056da
parent236f1f672ca4b5dea70c0c101036224297c53895
block: Assume raw for drives without media

qemu -cdrom /dev/cdrom with an empty CD-ROM drive doesn't work any more because
we try to guess the format and when this fails (because there is no medium) we
exit with an error message.

This patch should restore the old behaviour by assuming raw format for such
drives.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c