Annotation of researchv9/sys/sun/dklabel.h, revision 1.1.1.1

1.1       root        1: /*     @(#)dklabel.h 1.1 86/02/03 SMI  */
                      2: 
                      3: /*
                      4:  * Copyright (c) 1983 by Sun Microsystems, Inc.
                      5:  */
                      6: 
                      7: /*
                      8:  * Format of a Sun SMD disk label.
                      9:  * Resides in cylinder 0, sector 0 on each head which is the first
                     10:  * head of a physical partition (e.g., heads 0 and 2 for a CDC Lark).
                     11:  * dkl_ppart gives the physical partition number (currently only 0 or 1).
                     12:  * dkl_bhead must match the head on which the label is found;
                     13:  * otherwise the label was probably overwritten by another.
                     14:  *
                     15:  * sizeof(struct dk_label) should be 512 (sector size)
                     16:  */
                     17: 
                     18: #define        NDKMAP  8       /* # of logical partitions */
                     19: struct dk_label {
                     20:        char    dkl_asciilabel[128];    /* for compatibility */
                     21:        char    dkl_pad[512-(128+8*8+11*2)];
                     22:        unsigned short  dkl_gap1;       /* size of gap 1 */
                     23:        unsigned short  dkl_gap2;       /* size of gap 2 */
                     24:        unsigned short  dkl_intrlv;     /* interleave factor */
                     25:        unsigned short  dkl_ncyl;       /* # of data cylinders */
                     26:        unsigned short  dkl_acyl;       /* # of alternate cylinders */
                     27:        unsigned short  dkl_nhead;      /* # of heads in this partition */
                     28:        unsigned short  dkl_nsect;      /* # of 512 byte sectors per track */
                     29:        unsigned short  dkl_bhead;      /* identifies proper label location */
                     30:        unsigned short  dkl_ppart;      /* physical partition # */
                     31:        /* */
                     32:        struct dk_map {                 /* logical partitions */
                     33:                daddr_t dkl_cylno;      /* starting cylinder */
                     34:                daddr_t dkl_nblk;       /* number of blocks */
                     35:        } dkl_map[NDKMAP];
                     36:        unsigned short  dkl_magic;      /* identifies this label format */
                     37:        unsigned short  dkl_cksum;      /* xor checksum of sector */
                     38: };
                     39: 
                     40: #define        DKL_MAGIC       0xDABE

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.