From owner-freebsd-hackers Thu Feb 9 13:52:56 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id NAA18805 for hackers-outgoing; Thu, 9 Feb 1995 13:52:56 -0800 Received: from linux4nn.iaf.nl (root@linux4nn.iaf.nl [193.67.144.34]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id NAA18786 for ; Thu, 9 Feb 1995 13:52:46 -0800 Received: from uni4nn.iaf.nl (root@uni4nn.iaf.nl [193.67.144.33]) by linux4nn.iaf.nl (8.6.9/8.6.9) with SMTP id WAA00843; Thu, 9 Feb 1995 22:58:23 +0100 Received: by uni4nn.iaf.nl with UUCP id AA29282 (5.67b/IDA-1.5); Thu, 9 Feb 1995 22:50:18 +0200 Received: by iafnl.iaf.nl with UUCP id AA25504 (5.65c/IDA-1.4.4); Thu, 9 Feb 1995 22:12:32 +0100 Received: (from wilko@localhost) by yedi.iaf.nl (8.6.8/8.6.6) id TAA00546; Thu, 9 Feb 1995 19:56:21 +0100 From: Wilko Bulte Message-Id: <199502091856.TAA00546@yedi.iaf.nl> Subject: Re: Using seagate driver with Future Domain 950: :-( To: rgrimes@gndrsh.aac.dev.com (Rodney W. Grimes) Date: Thu, 9 Feb 1995 19:56:21 +1596657 (MET) Cc: bde@zeta.org.au, FreeBSD-hackers@FreeBSD.org, vak@cronyx.msk.su In-Reply-To: <199502091736.JAA22018@gndrsh.aac.dev.com> from "Rodney W. Grimes" at Feb 9, 95 09:36:46 am X-Mailer: ELM [version 2.4 PL22] Content-Type: text Content-Length: 1214 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > >loop this time, but the drive was incorrectly identified as holding > > >a cdrom size 400000 x 2048 blocks. An attempt to mount a CD resulted > > >in a panic: sea0:2:0 timed out, sending message invalid phase STATIN > > > > 40* x 2048 seems to be a standard magic number that results if media > > detection is not working. It also happens for the Ultrastor driver > > if the media is not present. > > Here is the source of that magic number, from sys/scsi/cd.c: > if (blksize < 512) > blksize = 2048; /* some drives lie ! */ > if (size < 100) > size = 400000; /* ditto */ Very nice coding: if you can't get better info just assume something. Would be nice to have in some banking application ;-) > that command returned success. Seems that some drives and/or controllers > are returning bad data :-( In this case it is not the drive, that one works fine when used with an Adaptec 1540 Wilko _ __________________________________________________________________________ | / o / / _ Wilko Bulte email: wilko@yedi.iaf.nl |/|/ / / /( (_) Private FreeBSD site - Arnhem - The Netherlands --------------------------------------------------------------------------------