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

Bug#447337: marked as done (sr_ioctl fail to send status TRAY_OPEN)



Your message dated Thu, 8 May 2008 21:52:39 +0200
with message-id <20080508195239.GB13915@stro.at>
and subject line Re: sr_ioctl fail to send status TRAY_OPEN
has caused the Debian Bug report #447337,
regarding sr_ioctl fail to send status TRAY_OPEN
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
447337: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=447337
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: linux-source-2.6.22
Version: 2.6.22-4~bpo40+1
Severity: serious
Tags: patch



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-2-686
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)

Versions of packages linux-source-2.6.22 depends on:
ii  binutils                      2.17-3     The GNU assembler, linker and bina
ii  bzip2                         1.0.3-6    high-quality block-sorting file co

Versions of packages linux-source-2.6.22 recommends:
ii  gcc                    4:4.1.1-15        The GNU C compiler
ii  libc6-dev [libc-dev]   2.3.6.ds1-13etch2 GNU C Library: Development Librari
ii  make                   3.81-2            The GNU version of the "make" util

-- no debconf information

>From  David Martin <>
  Subject  [PATCH] SCSI not showing tray status correctly
  Date  Mon, 27 Dec 2004 06:26:32 +0100
Digg This  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.



--- linux-2.6.10-orig/drivers/scsi/sr_ioctl.c        2004-12-27 
04:47:22.000000000 +0100
+++ linux-2.6.10/drivers/scsi/sr_ioctl.c     2004-12-27 05:54:08.000000000 
+0100
@@ -216,14 +216,20 @@

 int sr_drive_status(struct cdrom_device_info *cdi, int slot)
 {
+       struct media_event_desc med;
+
        if (CDSL_CURRENT != slot) {
                /* we have no changer support */
                return -EINVAL;
        }
+
        if (0 == test_unit_ready(cdi->handle))
                return CDS_DISC_OK;

-       return CDS_TRAY_OPEN;
+       if (!cdrom_get_media_event(cdi, &med) && med.door_open)
+               return CDS_TRAY_OPEN;
+
+       return CDS_NO_DISC;
 }

 int sr_disk_status(struct cdrom_device_info *cdi)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



--- End Message ---
--- Begin Message ---
Version: 2.6.25-1

fixed upstream is more complete and got applied for 2.6.25,
see 210ba1d1724f5c4ed87a2ab1a21ca861a915f734 in linux-2.6 git.

thus closing

-- 
maks


--- End Message ---

Reply to: