From olli@graal.camelot.de  Tue Aug 18 12:16:25 1998
Received: from mail.camelot.de (mail.camelot.de [195.30.224.10])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA09811
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 18 Aug 1998 12:16:22 -0700 (PDT)
          (envelope-from olli@graal.camelot.de)
Received: from robin.camelot.de (uucp@robin.camelot.de [195.30.224.3])
	by mail.camelot.de (8.8.8/8.8.8) with ESMTP id VAA20743
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 18 Aug 1998 21:15:45 +0200 (CEST)
	(envelope-from olli@graal.camelot.de)
Received: (from uucp@localhost)
	by robin.camelot.de (8.8.8/8.8.8) with UUCP id VAA20740
	for FreeBSD-gnats-submit@freebsd.org; Tue, 18 Aug 1998 21:15:45 +0200 (CEST)
	(envelope-from olli@graal.camelot.de)
Received: from gradalis.local.net (gradalis [192.168.0.44])
	by graal.camelot.de (8.8.5/8.8.5) with ESMTP id WAA25614
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 17 Aug 1998 22:06:39 +0200 (MET DST)
Received: (from olli@localhost)
	by gradalis.local.net (8.8.8/8.8.5) id WAA10202;
	Mon, 17 Aug 1998 22:08:45 +0200 (MEST)
Message-Id: <199808172008.WAA10202@gradalis.local.net>
Date: Mon, 17 Aug 1998 22:08:45 +0200 (MEST)
From: Oliver Nissen <olli@graal.camelot.de>
Reply-To: olli@graal.camelot.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: scsiformat reports '0' for all parameters
X-Send-Pr-Version: 3.2

>Number:         7664
>Category:       kern
>Synopsis:       scsiformat reports '0' for all parameters
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 18 12:20:00 PDT 1998
>Closed-Date:    Sat Jul 21 22:23:03 PDT 2001
>Last-Modified:  Sat Jul 21 22:24:29 PDT 2001
>Originator:     Oliver Nissen
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
CameloT Online Services
>Environment:

FreeBSD 3.0-CURRENT i386 as of 07/27/98

Excerpt from dmesg:
[...]
ahc0: Using left over BIOS settings
ahc0: aic7880 Wide Channel, SCSI Id=7, 16/255 SCBs
ahc0: waiting for scsi devices to settle
scbus0 at ahc0 bus 0
ahc0: target 0 Tagged Queuing Device
sd0 at scbus0 target 0 lun 0
sd0: <IBM DCAS-34330 S61A> type 0 fixed SCSI 2
sd0: Direct-Access 4134MB (8467200 512 byte sectors)
od0 at scbus0 target 2 lun 0
od0: <FUJITSU M2513E 0040> type 7 removable SCSI 2
od0: Optical od not present
cd0 at scbus0 target 4 lun 0
cd0: <PIONEER CD-ROM DR-U12X 1.06> type 5 removable SCSI 2
cd0: CD-ROM can't get the size
pt0 at scbus0 target 5 lun 0
pt0: <HP C5110A 3638> type 3 fixed SCSI 2
pt0: Processor
[...]

>Description:

	When I issue the scsiformat command for the od0 device trying to format a 640MB magneto-optical medium (2048 Bytes per sector), I get:

%scsiformat /dev/od0
FUJITSU
M2513E
0040

SCIOCCOMMAND ioctl: Command accepted.
return status 3 (Sense Returned) host adapter status 2
Command out (6 of 6):
1a 00 04 00 64 00

Data in (0 of 72):

Error code is "current errors"
Segment number is 00
Sense key is "Illegal request"
The Information field is not valid but contains 00000000 (0).
The Command Specific Information field is 00000000 (0).
Additional sense code: 24
Additional sense code qualifier: 00
sense (32 of 48):
70 00 05 00 00 00 00 18 00 00 00 00 24 00 00 00
22 60 00 00 00 00 00 00 00 00 00 00 00 00 00 00

Mode data length:  0
Medium type:  0
Device Specific Parameter:  0
Block descriptor length:  0
Density code:  0
Number of blocks:  0
Reserved:  0
Block length:  0
PS:  0
Reserved:  0
Page code:  0
Page length:  0
Number of Cylinders:  0
Number of Heads:  0
Starting Cylinder-Write Precompensation:  0
Starting Cylinder-Reduced Write Current:  0
Drive Step Rate:  0
Landing Zone Cylinder:  0
Reserved:  0
RPL:  0
Rotational Offset:  0
Reserved:  0
Medium Rotation Rate:  0
Reserved:  0
Reserved:  0


>How-To-Repeat:

	issue scsiformat command

>Fix:
	
	Anyway, actually formatting a 640MB disk DOES work

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 22:23:03 PDT 2001 
State-Changed-Why:  

This PR doesn't apply to newer versions of FreeBSD.  scsiformat(8) 
is long gone. 

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