qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 0/3] scsi: eject fixed


From: Alexey Kardashevskiy
Subject: [Qemu-devel] [PATCH 0/3] scsi: eject fixed
Date: Wed, 4 Dec 2013 15:55:22 +1100

The initial problem was if the user ejects a ISO/DVD mounted in Fedora19,
the block device went into weird state when QEMU's monitor reported that
it is locked, has medium but tray open (some debug output is below).

Please comment. Thanks!


address@hidden ~]# mount /dev/cdrom /mnt
mount: /dev/sr0 is write-protected, mounting read-only
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: RRIP_1991A
address@hidden ~]# QEMU 1.7.50 monitor - type 'help' for more information
(qemu) eject cd1
Device 'cd1' is locked
(qemu) info block
sd0: virtimg/fc19_16GB.qcow2 (qcow2)

cd1: virtimg/Fedora-19-ppc64-netinst.iso (raw)
    Removable device: locked, tray open
    (qemu) 

address@hidden ~]# ls /mnt
sr 1:0:0:0: [sr0] Device not ready
sr 1:0:0:0: [sr0]  
Result: hostbyte=0x00 driverbyte=0x08
sr 1:0:0:0: [sr0]  
Sense Key : 0x2 [current] 
sr 1:0:0:0: [sr0]  
ASC=0x3a ASCQ=0x0
sr 1:0:0:0: [sr0] CDB: 
cdb[0]=0x28: 28 00 00 00 00 1c 00 00 01 00
end_request: I/O error, dev sr0, sector 112
address@hidden ~]# 



Alexey Kardashevskiy (3):
  scsi-disk: close drive on START_STOP
  scsi-disk: check for meduim on ALLOW_MEDIUM_REMOVAL
  scsi debug: print command name in debug

 hw/scsi/scsi-bus.c    | 5 ++++-
 hw/scsi/scsi-disk.c   | 7 +++++--
 hw/scsi/spapr_vscsi.c | 5 +++--
 include/block/scsi.h  | 2 ++
 4 files changed, 14 insertions(+), 5 deletions(-)

-- 
1.8.4.rc4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]