Date: Fri, 10 Feb 1995 14:59:03 +1100 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, rgrimes@gndrsh.aac.dev.com Cc: FreeBSD-hackers@FreeBSD.org, vak@cronyx.msk.su, wilko@yedi.iaf.nl Subject: Re: Using seagate driver with Future Domain 950: :-( Message-ID: <199502100359.OAA27634@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> 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 */ >This occurs after the command to get the size, and is only done if >that command returned success. Seems that some drives and/or controllers >are returning bad data :-( For the ultrastor it's a driver bug. Media not-present errors are not detected and some buffers are all 0's. 0 < 512 && 0 < 100, so the obviously bogus 0 x 0 is punted to 400000 x 2048. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199502100359.OAA27634>