[Bugme-new] [Bug 9215] New: When trying to get the drive status via
ioctl CDROM_DRIVE_STATUS,
with no disk it gives CDS_TRAY_OPEN even if the tray is closed on
SATA/SCSI devices
bugme-daemon at bugzilla.kernel.org
bugme-daemon at bugzilla.kernel.org
Tue Oct 23 23:58:03 PDT 2007
http://bugzilla.kernel.org/show_bug.cgi?id=9215
Summary: When trying to get the drive status via ioctl
CDROM_DRIVE_STATUS, with no disk it gives CDS_TRAY_OPEN
even if the tray is closed on SATA/SCSI devices
Product: IO/Storage
Version: 2.5
KernelVersion: 2.6.10 and above
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: high
Priority: P1
Component: SCSI
AssignedTo: io_scsi at kernel-bugs.osdl.org
ReportedBy: sukiyazov at mail.ru
Most recent kernel where this bug did not occur:
Distribution: 2.6.10
Hardware Environment: SATA/SCSI CDROM (which uses sr_mod)
Software Environment:
Problem Description:
When trying to get the drive status via ioctl CDROM_DRIVE_STATUS, with no disk
it gives CDS_TRAY_OPEN even if the tray is closed.
ioctl works as expected with ide-cd driver. Here is the patch to get the same
behaviour on SCSI drives for kernel 2.6.10. 2.4 branch have same problem.
Get from Debian bug #447337
(http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447337)
Reproducible: Always
Steps to Reproduce:
1. Close empty CD tray.
2. call state = ioctl(device_handle, CDROM_DRIVE_STATUS);
3. state always gives CDS_TRAY_OPEN even if the tray is closed.
Resolve:
Patch for solve this problem present at Debian bug #447337 by URL:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447337
I apply this patch. It work correctly. Now ioctl(device_handle,
CDROM_DRIVE_STATUS) returns right result.
--
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Bugme-new
mailing list