1 /* 2 * Copyright (c) 1983 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that the above copyright notice and this paragraph are 7 * duplicated in all such forms and that any documentation, 8 * advertising materials, and other materials related to such 9 * distribution and use acknowledge that the software was developed 10 * by the University of California, Berkeley. The name of the 11 * University may not be used to endorse or promote products derived 12 * from this software without specific prior written permission. 13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16 * 17 * @(#)disktab.h 5.3 (Berkeley) 09/30/88 18 */ 19 20 /* 21 * Disk description table, see disktab(5) 22 */ 23 #define DISKTAB "/etc/disktab" 24 25 struct disktab { 26 char *d_name; /* drive name */ 27 char *d_type; /* drive type */ 28 int d_secsize; /* sector size in bytes */ 29 int d_ntracks; /* # tracks/cylinder */ 30 int d_nsectors; /* # sectors/track */ 31 int d_ncylinders; /* # cylinders */ 32 int d_rpm; /* revolutions/minute */ 33 int d_badsectforw; /* supports DEC bad144 std */ 34 int d_sectoffset; /* use sect rather than cyl offsets */ 35 struct partition { 36 int p_size; /* #sectors in partition */ 37 short p_bsize; /* block size in bytes */ 38 short p_fsize; /* frag size in bytes */ 39 } d_partitions[8]; 40 }; 41 42 struct disktab *getdiskbyname(); 43