From nsayer@quack.kfu.com  Wed Sep 18 11:23:17 1996
Received: from quack.kfu.com (quack.kfu.com [204.147.226.1])
          by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA05094
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Sep 1996 11:23:12 -0700 (PDT)
Received: from morpheus.kfu.com (morpheus.kfu.com [204.147.226.4]) by quack.kfu.com (8.6.12/8.6.12) with ESMTP id LAA11984 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Sep 1996 11:23:08 -0700
Received: by morpheus.kfu.com 
        (8.7.5//ident-1.0) id LAA01132; Wed, 18 Sep 1996 11:23:08 -0700 (PDT) 
Message-Id: <199609181823.LAA01132@morpheus.kfu.com>
Date: Wed, 18 Sep 1996 11:23:08 -0700 (PDT)
From: nsayer@quack.kfu.com
Reply-To: nsayer@quack.kfu.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: worm driver won't make audio tracks
X-Send-Pr-Version: 3.2

>Number:         1638
>Category:       kern
>Synopsis:       worm driver won't make audio tracks
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 18 11:30:01 PDT 1996
>Closed-Date:    Sun Jan 12 20:52:08 MET 1997
>Last-Modified:  Sun Jan 12 20:52:46 MET 1997
>Originator:     Nick Sayer
>Release:        FreeBSD 2.2-960801-SNAP i386
>Organization:
Just me
>Environment:

HP 4020i worm drive, AHA-2940 built into P-120/Triton motherboard.

>Description:

Attempting to burn an audio track results in a sense 2c Command Sequence
error.

>How-To-Repeat:

wormcontrol select HP 4020i
wormcontrol prepdisk single dummy
wormcontrol track audio
rtprio 5 team -v 1m 5 < t1.cdr | rtprio 5 dd of=/dev/rworm0 obs=23520

The write fails immediately and the driver reports sense 2c.

Attempting the same set of actions with 'data' instead of 'audio'
and '20k' instead of 23520 works, but would result in an unusable disk
if the dummy flag was left off.

>Fix:

>Release-Note:
>Audit-Trail:

From: Nick Sayer <nsayer@quack.kfu.com>
To: FreeBSD-gnats-submit@freefall.freebsd.org,
        freebsd-bugs@freefall.freebsd.org
Cc:  Subject: Re: kern/1638: worm driver won't make audio tracks
Date: Mon, 30 Sep 1996 20:00:11 -0700 (PDT)

 FreeBSD-gnats@freefall.freebsd.org writes:
 
 I don't know if this is the correct way to submit updates, but...
 
 in /sys/scsi/worm.c, in worm_size(), changing
 
                 worm->blk_size = 2048;
 
 to
 
 		worm->blk_size = (worm->audio?2352:2048);
 
 Appears to have fixed the problem. It has been tested so far using
 dummy runs only. A test with live media is pending. I'll let y'all know.
 
 > >Category:       kern
 > >Responsible:    freebsd-bugs
 > >Synopsis:       worm driver won't make audio tracks
 > >Arrival-Date:   Wed Sep 18 11:30:01 PDT 1996
 
 -- 
 Nick Sayer <nsayer@quack.kfu.com>  | I would be far more patient on the
 N6QQQ @ N0ARY.#NORCAL.CA.USA.NOAM  | whole if my patience weren't
 +1 408 249 9630, log in as 'guest' | constantly being tested.
 URL: http://www.kfu.com/~nsayer/   | 

From: Nick Sayer <nsayer@quack.kfu.com>
To: freebsd-gnats-submit@freebsd.org, nsayer@quack.kfu.com
Cc:  Subject: Re: kern/1638: worm driver won't make audio tracks
Date: Mon, 06 Jan 1997 21:01:55 -0800

 This can be closed. The behavior in 2.2-ALPHA is correct, so far as I
 can tell.
State-Changed-From-To: open->closed 
State-Changed-By: joerg 
State-Changed-When: Sun Jan 12 20:52:08 MET 1997 
State-Changed-Why:  
Fixed in rev 1.30 of worm.c. 

>Unformatted:
