Subject: Re: nore on disk stats
To: None <>
From: Niklas Hallqvist <>
List: tech-kern
Date: 11/14/1995 14:42:03
>>>>> "Jason" == Jason Thorpe <> writes:

Jason> Well, like I've mentioned before, this is Really Easy with
Jason> SCSI.  However, having an hp300, I do indeed realize that All
Jason> The World's Not SCSI.  What I'd duggest is a new ioctl
Jason> (DIOCGGEOM maybe?) that would be implemented in the individual
Jason> drivers, like the disklabel-related ones are, which fills in a
Jason> structure like the following:

Jason> If you can't get this info from a particular type of hardware,
Jason> you just get back an ENOTTY.

I know this is is the customary error code, it's just so funny.
Esp. with programs using strerror, think of report_geom as an app
doing the DIOCGGEOM ioctl:

$ report_geom /dev/tty00
/dev/tty00: not a tty

:-) :-) :-) :-)

Niklas Hallqvist       Phone: +46-(0)31-40 75 00  Home: +46-(0)31-41 93 95
Applitron Datasystem   Fax:   +46-(0)31-83 39 50  Home: +46-(0)31-41 93 96
Molndalsvagen 95       Email:     GSM:  +46-(0)70-714 10 35
S-412 63  GOTEBORG     WWW:   Here
Sweden		       IRC:   niklas (#NetBSD)    ICB:  niklas (netbsd)