home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilss / sockets / include / sys / h / dkbad < prev    next >
Encoding:
Text File  |  1995-01-11  |  1.9 KB  |  65 lines

  1. /*
  2.  * $Header: /ax/networking:include/sys/dkbad.h:networking  1.1  $
  3.  * $Source: /ax/networking:include/sys/dkbad.h: $
  4.  *
  5.  * Copyright (c) 1988 Acorn Computers Ltd., Cambridge, England
  6.  *
  7.  * $Log:    dkbad.h,v $
  8.  * Revision 1.1  95/01/11  10:19:06  kwelton
  9.  * Initial revision
  10.  * 
  11.  * Revision 1.3  88/06/17  20:18:45  beta
  12.  * Acorn Unix initial beta version
  13.  * 
  14.  */
  15. /* @(#)dkbad.h    1.2 87/05/15 3.2/4.3NFSSRC */
  16. /*
  17.  * Copyright (c) 1982, 1986 Regents of the University of California.
  18.  * All rights reserved.  The Berkeley software License Agreement
  19.  * specifies the terms and conditions for redistribution.
  20.  *
  21.  *    @(#)dkbad.h    7.1 (Berkeley) 6/4/86
  22.  */
  23.  
  24. /*
  25.  * Definitions needed to perform bad sector
  26.  * revectoring ala DEC STD 144.
  27.  *
  28.  * The bad sector information is located in the
  29.  * first 5 even numbered sectors of the last
  30.  * track of the disk pack.  There are five
  31.  * identical copies of the information, described
  32.  * by the dkbad structure.
  33.  *
  34.  * Replacement sectors are allocated starting with
  35.  * the first sector before the bad sector information
  36.  * and working backwards towards the beginning of
  37.  * the disk.  A maximum of 126 bad sectors are supported.
  38.  * The position of the bad sector in the bad sector table
  39.  * determines which replacement sector it corresponds to.
  40.  *
  41.  * The bad sector information and replacement sectors
  42.  * are conventionally only accessible through the
  43.  * 'c' file system partition of the disk.  If that
  44.  * partition is used for a file system, the user is
  45.  * responsible for making sure that it does not overlap
  46.  * the bad sector information or any replacement sector.s
  47.  */
  48.  
  49. struct dkbad {
  50.     long    bt_csn;            /* cartridge serial number */
  51.     u_short    bt_mbz;            /* unused; should be 0 */
  52.     u_short    bt_flag;        /* -1 => alignment cartridge */
  53.     struct bt_bad {
  54.         u_short    bt_cyl;        /* cylinder number of bad sector */
  55.         u_short    bt_trksec;    /* track and sector number */
  56.     } bt_bad[126];
  57. };
  58.  
  59. #define    ECC    0
  60. #define    SSE    1
  61. #define    BSE    2
  62. #define    CONT    3
  63.  
  64. /* EOF dkbad.h */
  65.