Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2005 15:12:12 +0300
From:      Andriy Gapon <avg@icyb.net.ua>
To:        freebsd-stable@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: ad and da do not set interface type in devstat entry [Was: acd lacks devstat]
Message-ID:  <4295BD1C.6020507@icyb.net.ua>
In-Reply-To: <429206BB.2050409@icyb.net.ua>
References:  <428C6489.3040609@icyb.net.ua> <429206BB.2050409@icyb.net.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4295BD1C.6020507>