kern/81497: ad and da do not set interface type in devstat entry

Andriy Gapon avg at icyb.net.ua
Thu May 26 05:20:09 PDT 2005


>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:


More information about the freebsd-bugs mailing list