From owner-freebsd-bugs Mon Jun 12 07:52:12 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA21251 for bugs-outgoing; Mon, 12 Jun 1995 07:52:12 -0700 Received: from gw2.att.com (gw1.att.com [192.20.239.133]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id HAA21245 for ; Mon, 12 Jun 1995 07:52:11 -0700 Received: from ihats1.ih.att.com by ig1.att.att.com id AA03015; Mon, 12 Jun 95 10:45:44 EDT Received: by ihats1.ih.att.com (4.1/EMS-1.1.1 SunOS) id AA24433; Mon, 12 Jun 95 09:45:42 CDT From: imdave@ihats103.ih.att.com Received: from ihats103.ih.att.com by ihats1.ih.att.com (4.1/EMS-1.1.1 SunOS) id AA24429; Mon, 12 Jun 95 09:45:40 CDT Received: by ihats103.ih.att.com (4.1/EMS-1.1.1 SunOS) id AA02273; Mon, 12 Jun 95 09:45:15 CDT Date: Mon, 12 Jun 95 09:45:15 CDT Message-Id: <9506121445.AA02273@ihats103.ih.att.com> To: freebsd.org!freebsd-bugs@ig1.att.att.com Subject: iostat/scsi cdrom bug report Sender: bugs-owner@FreeBSD.org Precedence: bulk Running the april snap, I tried iostat. It showed the statistics for the WD? and SD? disks, but when I mounted a cdrom and did some cat's, no activity showed up. I took a quick look at the source for the SCSI cdrom driver, and it appears that the value of 'unit' being non-zero is used to control the statistics counting. However, since I only have one cdrom, the unit number is zero. I think the code uses a value of -1 to indicate "not present", so the check for updating the statistics needs to be changed. Dave Bodenstab AT&T ...att!ihats1!imdave