xref: /csrg-svn/include/disktab.h (revision 42613)
121302Sdist /*
235760Sbostic  * Copyright (c) 1983 The Regents of the University of California.
335760Sbostic  * All rights reserved.
421302Sdist  *
5*42613Sbostic  * %sccs.include.redist.c%
635760Sbostic  *
7*42613Sbostic  *	@(#)disktab.h	5.4 (Berkeley) 06/01/90
821302Sdist  */
911410Ssam 
1011410Ssam /*
1111410Ssam  * Disk description table, see disktab(5)
1211410Ssam  */
1311410Ssam #define	DISKTAB		"/etc/disktab"
1411410Ssam 
1511410Ssam struct	disktab {
1611410Ssam 	char	*d_name;		/* drive name */
1711410Ssam 	char	*d_type;		/* drive type */
1811410Ssam 	int	d_secsize;		/* sector size in bytes */
1911410Ssam 	int	d_ntracks;		/* # tracks/cylinder */
2011410Ssam 	int	d_nsectors;		/* # sectors/track */
2111410Ssam 	int	d_ncylinders;		/* # cylinders */
2211410Ssam 	int	d_rpm;			/* revolutions/minute */
2325083Smckusick 	int	d_badsectforw;		/* supports DEC bad144 std */
2425083Smckusick 	int	d_sectoffset;		/* use sect rather than cyl offsets */
2511410Ssam 	struct	partition {
2611410Ssam 		int	p_size;		/* #sectors in partition */
2711410Ssam 		short	p_bsize;	/* block size in bytes */
2811410Ssam 		short	p_fsize;	/* frag size in bytes */
2911410Ssam 	} d_partitions[8];
3011410Ssam };
3111410Ssam 
3211410Ssam struct	disktab *getdiskbyname();
33