From owner-freebsd-scsi Wed Jul 9 11:37:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA29968 for freebsd-scsi-outgoing; Wed, 9 Jul 1997 11:37:05 -0700 (PDT) Received: from soleil.uvsq.fr (soleil.uvsq.fr [193.51.24.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA29959 for ; Wed, 9 Jul 1997 11:37:01 -0700 (PDT) Received: from arts.ratp.fr (arts.ratp.fr [193.106.40.1]) by soleil.uvsq.fr (8.8.6/jtpda-5.2) with ESMTP id UAA25631 for ; Wed, 9 Jul 1997 20:36:55 +0200 (METDST) Received: by arts.ratp.fr id UAA25613 for ; Wed, 9 Jul 1997 20:36:50 +0200 (DST) Received: from minos.noisy.ratp by arts.ratp.fr with SMTP id SAA025611 for ; Wed Jul 9 20:36:42 1997 Received: from fugue.noisy.ratp (taillandier.rtc.ratp [192.25.83.123]) by minos.noisy.ratp with ESMTP id UAA01058 for ; Wed, 9 Jul 1997 20:36:42 +0200 (DST) Received: by fugue.noisy.ratp id UAA00503 ; Wed, 9 Jul 1997 20:35:21 +0200 (DST) From: Janick.Taillandier@ratp.fr (Janick Taillandier) Message-ID: <19970709203516.04741@fugue.noisy.ratp> Date: Wed, 9 Jul 1997 20:35:16 +0200 To: freebsd-scsi@freebsd.org Subject: Re: Problem with worm in current References: <19970707204247.46321@fugue.noisy.ratp> <9707091313.AA22669@cabri.obs-besancon.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.76e In-Reply-To: <9707091313.AA22669@cabri.obs-besancon.fr>; from Jean-Marc Zucconi on Wed, Jul 09, 1997 at 02:13:49PM +0100 Sender: owner-freebsd-scsi@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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