Date: Thu, 26 May 2005 12:17:24 GMT From: Andriy Gapon <avg@icyb.net.ua> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/81497: ad and da do not set interface type in devstat entry Message-ID: <200505261217.j4QCHOJO093774@www.freebsd.org> Resent-Message-ID: <200505261220.j4QCK05K089160@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 81497 >Category: kern >Synopsis: ad and da do not set interface type in devstat entry >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 26 12:20:00 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Andriy Gapon >Release: 5.4-RELEASE >Organization: >Environment: 5.4-RELEASE i386 6.0-CURRENT i386 >Description: (scsi) cd device driver pre-creates devstat entry before calling geom disk_create() and sets device type to DEVSTAT_TYPE_CDROM|DEVSTAT_TYPE_IF_SCSI, which is perfect IMHO. On the other hand, da and ad drivers rely on disk_create() to create a devstat entry and it is created with device type DEVSTAT_TYPE_DIRECT, which is not incorrect but is not complete either: iostat -d -t SCSI or iostat -d -t IDE wouldn't show any ad or da devices, only cd >How-To-Repeat: 1. on a system with ad or da or both disks do the following: iostat -d -t SCSI iostat -d -t IDE Result: no ad/da devices are shown contrary to iostat(1) and reasonable expectations. >Fix: no patch at this time, sorry >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505261217.j4QCHOJO093774>