From nobody@FreeBSD.ORG Tue Mar 30 06:35:33 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 01C251502A; Tue, 30 Mar 1999 06:35:32 -0800 (PST)
Message-Id: <19990330143532.01C251502A@hub.freebsd.org>
Date: Tue, 30 Mar 1999 06:35:32 -0800 (PST)
From: pepelkod@mrj.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: wst0 fails with Sony SuperStation streaming tape drive
X-Send-Pr-Version: www-1.0

>Number:         10871
>Category:       misc
>Synopsis:       wst0 fails with Sony SuperStation streaming tape drive
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 30 06:40:00 PST 1999
>Closed-Date:    Wed May 30 03:20:00 PDT 2001
>Last-Modified:  Wed May 30 03:21:38 PDT 2001
>Originator:     Douglas Pepelko
>Release:        3.1-stable
>Organization:
MRJ
>Environment:
FreeBSD bpepy.erols.com 3.1-STABLE FreeBSD 3.1-STABLE #20: Sat Mar 27 15:43:16 E
ST 1999     doug@bpepy.erols.com:/usr/src/sys/compile/BAM  i386       
>Description:
Four things go wrong.  
1) If you comment out wdc1 in your <KERN> file it will put this 
in your <KERN>/wst.h directory:
#define NWDC 1
Although this is right, it should not be in the wst.h file.

2) The wdc probe sets off the Sony SuperStation. (Puts it into load/unload mode?)
3) The Sony StoreStation does not conform to ATAPI completely.  The ATAPI command MODE_SENSE has a switch that turns off DDB.   The drive ignores this switch.
4) The mt -f /dev/rwst0 <command> <param> fails.  The parameters sent in apparently dont get to the tape drive.

>How-To-Repeat:
Include wst0 in your kernel and buy a Sony SuperStation
>Fix:
Fixes to problems.
1) Comment out the #define NWDC X (but not #define NWST X)
2) Put a delay in at line 284 approx the length of the tape spin.  This is a sloppy temporary fix.  I will try to make a better one.
3) Change line 303 from this:
        bcopy(buffer+sizeof(struct wst_header),                 
to this:
        bcopy(buffer+sizeof(struct wst_header)+t->header.bdl,   

4) I will try to fix it today (March 30, 1999).

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Apr 4 14:28:56 PDT 1999 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Wed May 30 03:20:00 PDT 2001 
State-Changed-Why:  
This should work on 4.2 and later. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=10871 
>Unformatted:
