summary refs log tree commit diff stats
path: root/module.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-03-16 19:11:43 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2012-03-19 16:35:17 +0100
commit9bcaf4fe264c507b59ab2e5fc6b2fa9d36f06d44 (patch)
treee0ef4997657b3d718ee710ea4fe33fcc21af401b /module.c
parent7725d14679c4391391b63f933d604b046ef8adf6 (diff)
downloadfocaccia-qemu-9bcaf4fe264c507b59ab2e5fc6b2fa9d36f06d44.tar.gz
focaccia-qemu-9bcaf4fe264c507b59ab2e5fc6b2fa9d36f06d44.zip
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>
Diffstat (limited to 'module.c')
0 files changed, 0 insertions, 0 deletions