From nobody@FreeBSD.org  Sun Jun  4 19:06:01 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 691FF16A53C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Jun 2006 19:06:01 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 20C2443D70
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  4 Jun 2006 19:06:00 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k54J5xgK007695
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 4 Jun 2006 19:05:59 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k54J5xZC007694;
	Sun, 4 Jun 2006 19:05:59 GMT
	(envelope-from nobody)
Message-Id: <200606041905.k54J5xZC007694@www.freebsd.org>
Date: Sun, 4 Jun 2006 19:05:59 GMT
From: girish <m_girish_rao@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: "iostat" does not report statistics for atapi cdrom
X-Send-Pr-Version: www-2.3

>Number:         98502
>Category:       bin
>Synopsis:       [acd] iostat(8) does not report statistics for atapi cdrom
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    thomas
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 04 19:10:15 GMT 2006
>Closed-Date:    Sun Dec 09 22:07:11 UTC 2007
>Last-Modified:  Sun Dec  9 22:10:01 UTC 2007
>Originator:     girish
>Release:        6.1  (i386)
>Organization:
none (student)
>Environment:
FreeBSD nixfreak. 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May  7 04:32:43 UTC 2006     root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
"iostat" does not show statistics for atapi cdrom devices.

I have noticed this problem since 5.x release.

When I load the "atapicam" kernel module the iostat output shows the
statistics (MB/s) for "cd0".

I have used 3 atapi cdroms from different manufacturers (LG cdrom, Samsung 
ombo drive, LiteON combo drive) all of them work fine except that iostat
doesn't show statistics for the "acd" devices.

There is another thing - the 'burncd' utility fails during the "fixating"
phase of cd-burning but when the atapicam module is loaded the cd's are
burned successfully. 

Are both these problems related to the "acd" driver?
>How-To-Repeat:
run "iostat" with an atapi cdrom 
>Fix:
None
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: netchild 
Responsible-Changed-When: Sun Dec 10 19:56:26 UTC 2006 
Responsible-Changed-Why:  
- Over to maintainer. 
- Add the second problem in the synopsis too. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98502 
Responsible-Changed-From-To: sos->thomas 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun Dec 9 11:47:12 UTC 2007 
Responsible-Changed-Why:  
Reassign to thomas for the atapicam problem, the other problem is 
resolved by recent work from Soren in that region. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98502 
State-Changed-From-To: open->closed 
State-Changed-By: thomas 
State-Changed-When: Sun Dec 9 22:05:41 UTC 2007 
State-Changed-Why:  
Observed behaviour is correct and expected. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98502 

From: Thomas Quinot <thomas@FreeBSD.ORG>
To: girish <m_girish_rao@yahoo.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: bin/98502: "iostat" does not report statistics for atapi cdrom
Date: Sun, 9 Dec 2007 23:05:12 +0100

 * girish, 2006-06-04 :
 
 > "iostat" does not show statistics for atapi cdrom devices.
 > I have noticed this problem since 5.x release.
 > When I load the "atapicam" kernel module the iostat output shows the statistics (MB/s) for "cd0".
 
 This is expected. When using ATAPI/CAM to access an ATAPI device, the
 ATA device-specific driver (here, acd) is not used; instead, the corresponding
 CAM peripheral driver (here, cd) is used, so I/O counts are counted
 towards the latter.
 
 > I have used 3 atapi cdroms from different manufacturers (LG cdrom,Samsung combo drive, LiteON combo drive) all of them work fine except that iostat does'nt show statistics for the "acd" devices.
 
 Nor should it if you use 'cd', not 'acd', to access them.
 
 > There is another thing - the 'burncd' utility fails during the "fixating" phase
 > of cd-burning but when the atapicam module is loaded the cd's are burned successfully. 
 
 This is a completely unrelated issue. In general please open a separate
 PR for each issue, to help getting each addressed properly. In this
 particular case, remko noted that this 2nd issue has already been dealt
 with independently so I'll consider it OBE.
 
 Thomas.
 
>Unformatted:
