| 1 | /* |
| 2 | * Copyright (c) 1983, 1993 |
| 3 | * The Regents of the University of California. All rights reserved. |
| 4 | * |
| 5 | * %sccs.include.redist.c% |
| 6 | * |
| 7 | * @(#)disktab.h 8.1 (Berkeley) %G% |
| 8 | */ |
| 9 | |
| 10 | #ifndef _DISKTAB_H_ |
| 11 | #define _DISKTAB_H_ |
| 12 | |
| 13 | /* |
| 14 | * Disk description table, see disktab(5) |
| 15 | */ |
| 16 | #define DISKTAB "/etc/disktab" |
| 17 | |
| 18 | struct disktab { |
| 19 | char *d_name; /* drive name */ |
| 20 | char *d_type; /* drive type */ |
| 21 | int d_secsize; /* sector size in bytes */ |
| 22 | int d_ntracks; /* # tracks/cylinder */ |
| 23 | int d_nsectors; /* # sectors/track */ |
| 24 | int d_ncylinders; /* # cylinders */ |
| 25 | int d_rpm; /* revolutions/minute */ |
| 26 | int d_badsectforw; /* supports DEC bad144 std */ |
| 27 | int d_sectoffset; /* use sect rather than cyl offsets */ |
| 28 | struct partition { |
| 29 | int p_size; /* #sectors in partition */ |
| 30 | short p_bsize; /* block size in bytes */ |
| 31 | short p_fsize; /* frag size in bytes */ |
| 32 | } d_partitions[8]; |
| 33 | }; |
| 34 | |
| 35 | #endif /* !_DISKTAB_H_ */ |