| 1 | /* disktab.h 4.3 83/08/11 */ |
| 2 | |
| 3 | /* |
| 4 | * Disk description table, see disktab(5) |
| 5 | */ |
| 6 | #define DISKTAB "/etc/disktab" |
| 7 | |
| 8 | struct disktab { |
| 9 | char *d_name; /* drive name */ |
| 10 | char *d_type; /* drive type */ |
| 11 | int d_secsize; /* sector size in bytes */ |
| 12 | int d_ntracks; /* # tracks/cylinder */ |
| 13 | int d_nsectors; /* # sectors/track */ |
| 14 | int d_ncylinders; /* # cylinders */ |
| 15 | int d_rpm; /* revolutions/minute */ |
| 16 | struct partition { |
| 17 | int p_size; /* #sectors in partition */ |
| 18 | short p_bsize; /* block size in bytes */ |
| 19 | short p_fsize; /* frag size in bytes */ |
| 20 | } d_partitions[8]; |
| 21 | }; |
| 22 | |
| 23 | struct disktab *getdiskbyname(); |