Re: ad and da do not set interface type in devstat entry [Was: acd lacks devstat]

From: Andriy Gapon <avg_at_icyb.net.ua>
Date: Thu, 26 May 2005 15:12:12 +0300
On a devstat+disks related note:
I see that (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.

Btw, I have file a PR for acd not having devstat support:
http://www.freebsd.org/cgi/query-pr.cgi?pr=81496

-- 
Andriy Gapon
Received on Thu May 26 2005 - 10:12:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:35 UTC