Date: Wed, 9 Jul 97 14:13:49 +0100 From: Jean-Marc Zucconi <jmz@cabri.obs-besancon.fr> To: Janick.Taillandier@ratp.fr Cc: freebsd-scsi@freebsd.org Subject: Re: Problem with worm in current Message-ID: <9707091313.AA22669@cabri.obs-besancon.fr> In-Reply-To: <19970707204247.46321@fugue.noisy.ratp> (Janick.Taillandier@ratp.fr)
index | next in thread | previous in thread | raw e-mail
>>>>> Janick Taillandier writes:
> On Mon, Jul 07, 1997 at 04:49:15PM +0100, Jean-Marc Zucconi wrote:
>>
>> > worm0: ILLEGAL REQUEST asc:82,0 Vendor Specific ASC
>>
>> This means "Command Now Not Valid". Can you turn the debugging on so
>> that we can see what exactly happens?
> Sure. Il will mail you the results.
>> Do you try to write a data or an audio track?
> It was an audio track.
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
_____________________________________________________________________________
Jean-Marc Zucconi Observatoire de Besancon F 25010 Besancon cedex
PGP Key: finger jmz@cabri.obs-besancon.fr
=============================================================================
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9707091313.AA22669>
