xref: /csrg-svn/include/disktab.h (revision 11410)
1*11410Ssam /*	@(#)disktab.h	4.1 (Berkeley) 03/06/83	*/
2*11410Ssam 
3*11410Ssam /*
4*11410Ssam  * Disk description table, see disktab(5)
5*11410Ssam  */
6*11410Ssam #define	DISKTAB		"/etc/disktab"
7*11410Ssam #define	DISKNMLG	32
8*11410Ssam 
9*11410Ssam struct	disktab {
10*11410Ssam 	char	*d_name;		/* drive name */
11*11410Ssam 	char	*d_type;		/* drive type */
12*11410Ssam 	int	d_secsize;		/* sector size in bytes */
13*11410Ssam 	int	d_ntracks;		/* # tracks/cylinder */
14*11410Ssam 	int	d_nsectors;		/* # sectors/track */
15*11410Ssam 	int	d_ncylinders;		/* # cylinders */
16*11410Ssam 	int	d_rpm;			/* revolutions/minute */
17*11410Ssam 	struct	partition {
18*11410Ssam 		int	p_size;		/* #sectors in partition */
19*11410Ssam 		short	p_bsize;	/* block size in bytes */
20*11410Ssam 		short	p_fsize;	/* frag size in bytes */
21*11410Ssam 	} d_partitions[8];
22*11410Ssam };
23*11410Ssam 
24*11410Ssam struct	disktab *getdiskbyname();
25