Date: Wed, 9 Jul 1997 20:35:16 +0200 From: Janick.Taillandier@ratp.fr (Janick Taillandier) To: freebsd-scsi@freebsd.org Subject: Re: Problem with worm in current Message-ID: <19970709203516.04741@fugue.noisy.ratp> In-Reply-To: <9707091313.AA22669@cabri.obs-besancon.fr>; from Jean-Marc Zucconi on Wed, Jul 09, 1997 at 02:13:49PM %2B0100 References: <19970707204247.46321@fugue.noisy.ratp> <9707091313.AA22669@cabri.obs-besancon.fr>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 09, 1997 at 02:13:49PM +0100, Jean-Marc Zucconi wrote: > > Ok. It seems that the get capacity command returns a block size of > 2048 bytes even if it was previously set to another value. Can you try > the patch below? > > Index: worm.c > =================================================================== > RCS file: /home/ncvs/src/sys/scsi/worm.c,v > retrieving revision 1.42 > diff -u -r1.42 worm.c > --- worm.c 1997/07/01 00:22:51 1.42 > +++ worm.c 1997/07/08 17:49:40 > @@ -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); > > /* > > Jean-Marc Well... same result : worm0: ILLEGAL REQUEST asc:2c,0 Command sequence error I am sending you the trace in debug mode. Janick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970709203516.04741>