X-Spam-Check-By: sourceware.org Date: Fri, 24 Mar 2006 16:01:06 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: 1.5.19-4 : problem with SCSI emulation for CD-ROM Message-ID: <20060324150106.GO10301@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <2915de410603230123v4f1e216cgd40b869886e6efb8 AT mail DOT gmail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2915de410603230123v4f1e216cgd40b869886e6efb8@mail.gmail.com> User-Agent: Mutt/1.4.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mar 23 09:23, Gary Cowell wrote: > Under 1.5.19-4 on Windows 2000 SP4, the SCSI emulated CD-ROM device no > longer works. > [...] > This computer has 2 CD devices, an internal IDE and an external USB. > The following are results from some more devices when both drives > contained a CD-ROM: > > $ dd if=/dev/scd0 | md5sum > dd: opening `/dev/scd0': Invalid request code > > $ dd if=/dev/scd1 | md5sum > dd: opening `/dev/scd1': No such file or directory > > $ dd if=/dev/scd2 | md5sum > dd: opening `/dev/scd2': Function not implemented > > $ dd if=/dev/scd3 | md5sum > dd: opening `/dev/scd3': No such file or directory I can't exactly reproduce all of these messages, but I found at least the reason for the "Invalid request code" problem. When trying to request the block size and disk size of CDs and DVDs, NT4 and W2K don't support the IOCTL_DISK_GET_DRIVE_GEOMETRY ioctl. I changed the function which requests this data to try again using the native NT function NtQueryVolumeInformationFile, which seems to do the trick. Maybe that heals it for the USB drive as well? Please give the next developer snapshot from http://cygwin.com/snapshots/ a try. Thanks for the report, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/