]> git.proxmox.com Git - qemu.git/commit
scsi-cd: check ready condition before processing several commands
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Mar 2012 18:11:43 +0000 (19:11 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Mar 2012 15:35:17 +0000 (16:35 +0100)
commit9bcaf4fe264c507b59ab2e5fc6b2fa9d36f06d44
treee0ef4997657b3d718ee710ea4fe33fcc21af401b
parent7725d14679c4391391b63f933d604b046ef8adf6
scsi-cd: check ready condition before processing several commands

This commit is more or less obvious.  What it caused is less obvious:
SCSI CD drives failed to eject under Linux, though for example the
"change" command worked okay.  This happens because of the autoclose
option in the Linux CD-ROM driver.

The actual chain of events is quite complex and somehow involves
udev helpers; the actual command that matters is READ TOC, though
honestly it's not really clear to me how because it should always be
invoked after autoclose, not before.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi-disk.c