1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)disktab.h 5.2 (Berkeley) 10/1/85
7: */
8:
9: /*
10: * Disk description table, see disktab(5)
11: */
12: #define DISKTAB "/etc/disktab"
13:
14: struct disktab {
15: char *d_name; /* drive name */
16: char *d_type; /* drive type */
17: int d_secsize; /* sector size in bytes */
18: int d_ntracks; /* # tracks/cylinder */
19: int d_nsectors; /* # sectors/track */
20: int d_ncylinders; /* # cylinders */
21: int d_rpm; /* revolutions/minute */
22: int d_badsectforw; /* supports DEC bad144 std */
23: int d_sectoffset; /* use sect rather than cyl offsets */
24: struct partition {
25: int p_size; /* #sectors in partition */
26: short p_bsize; /* block size in bytes */
27: short p_fsize; /* frag size in bytes */
28: } d_partitions[8];
29: };
30:
31: struct disktab *getdiskbyname();
Defined struct's
Defined macros