From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 8 11:20:37 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F03111065673 for ; Thu, 8 Apr 2010 11:20:37 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 41D058FC1B for ; Thu, 8 Apr 2010 11:20:36 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA23347; Thu, 08 Apr 2010 14:20:32 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4BBDBC00.9000401@icyb.net.ua> Date: Thu, 08 Apr 2010 14:20:32 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.24 (X11/20100319) MIME-Version: 1.0 To: Markus Wild References: <903d65bf1d5624b5208c588b21e679ea@ripn.net> <4BBCFE30.2010709@icyb.net.ua> <20100408122439.664dedfb@amd64.dudes.ch> In-Reply-To: <20100408122439.664dedfb@amd64.dudes.ch> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org Subject: Re: virtual drive errors X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2010 11:20:38 -0000 on 08/04/2010 13:24 Markus Wild said the following: > Hello Andriy, > >> Looking at cdcheckmedia and at the logged READ TOC (0x43) SCSI >> command errors (as reported by Markus) I see the following problem. >> Even if cdsize() call at the beginning of cdcheckmedia() succeeds, a >> subsequent failure of cdreadtoc() throws us to 'bailout' label which >> is past the code that sets d_mediasize. >> >> I think that the following patch should help with this situation (and >> possibly other cases with READ TOC problems): > > This fix indeed fixes the problem (there are still all the failure logs > about the READ TOC/PMA/ATIP commands, but in the end, the mount > succeeds now, whereas before it failed), thanks a lot! Now, perhaps a > silly question: why would the READ TOC commands fail over the SCSI-USB > bridge to start with? I'm normally (if I'm not trying to use the > virtual USB cdrom) using ATAPI cdroms, and haven't seen any comparable > TOC problems with those... I am slightly confused. Does the same happen wth physical SCSI-USB bridge? Or it happens only with virtual/emulated CD drive? If the latter, then I'd guess that this is just how the emulator works. Thank you for testing! -- Andriy Gapon