Subject: Re: nore on disk stats
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Chris G Demetriou <Chris_G_Demetriou@BALVENIE.PDL.CS.CMU.EDU>
List: tech-kern
Date: 11/14/1995 16:38:26
> Well, like I've mentioned before, this is Really Easy with SCSI.  
> However, having an hp300, I do indeed realize that All The World's Not 
> SCSI.  What I'd duggest is a new ioctl (DIOCGGEOM maybe?) that would be 
> implemented in the individual drivers, like the disklabel-related ones 
> are, which fills in a structure like the following:
> 
> 	struct disk_geom {
> 		u_int32_t	dg_ncyl;	/* cylinders per unit */
> 		u_int32_t	dg_ntrk;	/* tracks per cyl */
> 		u_int32_t	dg_nblk;	/* blocks per unit */
> 		u_int32_t	dg_blksz;	/* bytes per block */
> 	};

why use fixed-size types, if it's not going to live on disk?


chris