Date: Tue, 12 Aug 97 16:36:45 +0100 From: Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr> To: rbezuide@oskar.nanoteq.co.za Cc: freebsd-hackers@freebsd.org Subject: Re: Can't mount worm0 Message-ID: <9708121536.AA23710@cabri.obs-besancon.fr> In-Reply-To: <199708121321.PAA07662@oskar.nanoteq.co.za> (message from Reinier Bezuidenhout on Tue, 12 Aug 1997 15:21:58 %2B0200 (SAT))
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> Reinier Bezuidenhout writes: > Hi ... > I have the following setup > 200 MHz pentium - running FreeBSD 3.0-970713-SNAP It is probably caused by a buggy driver at this date. Try the following patch. Index: worm.c =================================================================== RCS file: /home/ncvs/src/sys/scsi/worm.c,v retrieving revision 1.42 retrieving revision 1.44 diff -u -r1.42 -r1.44 --- worm.c 1997/07/01 00:22:51 1.42 +++ worm.c 1997/08/01 12:48:35 1.44 @@ -43,7 +43,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: worm.c,v 1.42 1997/07/01 00:22:51 bde Exp $ + * $Id: worm.c,v 1.44 1997/08/01 12:48:35 jmz Exp $ */ #include "opt_bounce.h" @@ -228,10 +228,11 @@ { errval ret; struct scsi_data *worm = sc_link->sd; + int blk_size; SC_DEBUG(sc_link, SDEV_DB2, ("worm_size")); - worm->n_blks = scsi_read_capacity(sc_link, &worm->blk_size, + worm->n_blks = scsi_read_capacity(sc_link, &blk_size, flags); /* @@ -551,6 +552,7 @@ worm->worm_flags &= ~WORMFL_TRACK_PREPED; sc_link->flags &= ~SDEV_OPEN; } + worm->blk_size = 2048; } } else worm->worm_flags |= WORMFL_IOCTL_ONLY; Jean-Marc _____________________________________________________________________________ Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex PGP Key: finger jmz@cabri.obs-besancon.fr
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9708121536.AA23710>