]> git.proxmox.com Git - qemu.git/commit - block.c
block: do not probe zero-sized disks
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Jan 2013 14:39:27 +0000 (15:39 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Jan 2013 09:06:56 +0000 (10:06 +0100)
commit8e895599a1beb250ebca00e83b5fae6a828d2171
treeed9225cdb7e270d97a3a7ac9b96767fe17bf18d7
parent63fb2590839162afdf14d7c0ee02d460766c0956
block: do not probe zero-sized disks

A blank CD or DVD is visible as a zero-sized disks.  Probing such
disks will lead to an EIO and a failure to start the VM.  Treating
them as raw is a better solution.

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