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