# 2.11BSD#431 - /usr/src/sbin/fsck/fsck.h

##### Variables

    badblk            X
    blockmap          X
    cylsize           X
    debug             X
    devname           X
    dfile             X
    dupblk            X
    endpathname       X
    fileblk           X
    fixfree           X
    freemap           X
    hotroot           X
    inoblk            X
    inobuf            X
    lfname            X
    lncntp            X
    membase           X
    memsize           X
    nflag             X
    pathname          X
    pathp             X
    poolhead          X
    preen             X
    rawflg            X
    sblk              X
    scrfile           X
    sfile             X
    sflag             X
    statemap          X
    stepsize          X
    yflag             X
    zino              X

##### Macros

    ADDR              X
    ALLOC             X
    ALTERED           X
    BITMASK           X
    BITSHIFT          X
    BITSPB            X
    BUFSIZ            X
    CYLSIZE           X
    DATA              X
    DCLEAR            X
    DFOUND            X
    DIRCT             X
    DSTATE            X
    DUPTBLSIZE        X
    FCLEAR            X
    FSTATE            X
    KEEPON            X
    LSTATE            X
    MAXBAD            X
    MAXCYL            X
    MAXDATA           X
    MAXDUP            X
    MAXINOPB          X
    MAXLNCNT          X
    MAXNINDIR         X
    MEMUNIT           X
    NINOBLK           X
    SKIP              X
    SMASK             X
    SPECIAL           X
    SPERB             X
    STATEPB           X
    STEPSIZE          X
    STOP              X
    USTATE            X
    clrbmap           X
    clrfmap           X
    declncnt          X
    dirblk            X
    dirty             X
    fbdirty           X
    freeblk           X
    getbmap           X
    getfmap           X
    getlncnt          X
    getstate          X
    inclncnt          X
    initbarea         X
    inodirty          X
    outrange          X
    sbdirty           X
    sblock            X
    setbmap           X
    setfmap           X
    setlncnt          X
    setstate          X
    zapino            X

##### struct's

    bufarea           X
    filecntl          X
    inodesc           X

##### enums's

    fixstate          X

##### typedef's

    BUFAREA           X
    DINODE            X
    DIRECT            X

       1: /*
       2:  * Copyright (c) 1980 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)fsck.h	5.1 (Berkeley) 6/5/85
       7:  */
       8:
       9: #define MAXDUP      10  /* limit on dup blks (per inode) */
      10: #define MAXBAD      10  /* limit on bad blks (per inode) */
      11:
      12: #define STEPSIZE    7   /* default step for freelist spacing */
      13: #define CYLSIZE     400 /* default cyl size for spacing */
      14: #define MAXCYL      500 /* maximum cylinder size */
      15:
      16: typedef int (*SIG_TYP)();
      17:
      18: #ifndef BUFSIZ
      19: #define BUFSIZ 1024
      20: #endif
      21:
      22: #define USTATE  01      /* inode not allocated */
      23: #define FSTATE  02      /* inode is file */
      24: #define DSTATE  03      /* inode is directory */
      25: #define DFOUND  04      /* directory found during descent */
      26: #define DCLEAR  05      /* directory is to be cleared */
      27: #define FCLEAR  06      /* file is to be cleared */
      28:
      29: #define BITSPB  8       /* number bits per byte */
      30: #define BITSHIFT    3   /* log2(BITSPB) */
      31: #define BITMASK 07      /* BITSPB-1 */
      32: #define LSTATE  4       /* bits per inode state */
      33: #define STATEPB (BITSPB/LSTATE) /* inode states per byte */
      34: #define SMASK   017     /* mask for inode state */
      35:
      36: typedef struct dinode   DINODE;
      37: typedef struct direct   DIRECT;
      38:
      39: #define ALLOC(dip)  (((dip)->di_mode & IFMT) != 0)
      40: #define DIRCT(dip)  (((dip)->di_mode & IFMT) == IFDIR)
      41: #define SPECIAL(dip) \
      42:     (((dip)->di_mode & IFMT) == IFBLK || ((dip)->di_mode & IFMT) == IFCHR)
      43:
      44: #define MAXNINDIR   (MAXBSIZE / sizeof (daddr_t))
      45: #define MAXINOPB    (MAXBSIZE / sizeof (struct dinode))
      46: #define SPERB       (MAXBSIZE / sizeof(short))
      47:
      48: struct bufarea {
      49:     struct bufarea  *b_next;        /* must be first */
      50:     daddr_t b_bno;
      51:     int b_size;
      52:     int b_errs;
      53:     union {
      54:         char    b_buf[MAXBSIZE];    /* buffer space */
      55:         short   b_lnks[SPERB];      /* link counts */
      56:         daddr_t b_indir[MAXNINDIR]; /* indirect block */
      57:         struct  fs b_fs;        /* super block */
      58:         struct  fblk b_fb;      /* free block */
      59:         struct dinode b_dinode[MAXINOPB]; /* inode block */
      60:     } b_un;
      61:     char    b_dirty;
      62: };
      63:
      64: typedef struct bufarea BUFAREA;
      65:
      66: BUFAREA inoblk;         /* inode blocks */
      67: BUFAREA fileblk;        /* other blks in filesys */
      68: BUFAREA sblk;           /* file system superblock */
      69: BUFAREA *poolhead;      /* ptr to first buffer in pool */
      70:
      71: #define initbarea(x)    (x)->b_dirty = 0;(x)->b_bno = (daddr_t)-1
      72: #define dirty(x)    (x)->b_dirty = 1
      73: #define inodirty()  inoblk.b_dirty = 1
      74: #define fbdirty()   fileblk.b_dirty = 1
      75: #define sbdirty()   sblk.b_dirty = 1
      76:
      77: #define dirblk      fileblk.b_un
      78: #define freeblk     fileblk.b_un.b_fb
      79: #define sblock      sblk.b_un.b_fs
      80:
      81: struct filecntl {
      82:     int rfdes;
      83:     int wfdes;
      84:     int mod;
      85: } dfile, sfile;         /* file descriptors for filesys/scratch files */
      86:
      87: enum fixstate {DONTKNOW, NOFIX, FIX};
      88:
      89: struct inodesc {
      90:     enum fixstate id_fix;   /* policy on fixing errors */
      91:     int (*id_func)();   /* function to be applied to blocks of inode */
      92:     ino_t id_number;    /* inode number described */
      93:     ino_t id_parent;    /* for DATA nodes, their parent */
      94:     daddr_t id_blkno;   /* current block number being examined */
      95:     long id_filesize;   /* for DATA nodes, the size of the directory */
      96:     off_t id_loc;       /* for DATA nodes, current location in dir */
      97:     u_long id_entryno;  /* for DATA nodes, current entry number */
      98:     DIRECT *id_dirp;    /* for DATA nodes, ptr to current entry */
      99:     char *id_name;      /* for DATA nodes, name to find or enter */
     100:     char id_type;       /* type of descriptor, DATA or ADDR */
     101: };
     102: /* file types */
     103: #define DATA    1
     104: #define ADDR    2
     105:
     106: /*
     107:  * Linked list of duplicate blocks.
     108:  *
     109:  * The list is composed of two parts. The first part of the
     110:  * list (from duplist through the node pointed to by muldup)
     111:  * contains a single copy of each duplicate block that has been
     112:  * found. The second part of the list (from muldup to the end)
     113:  * contains duplicate blocks that have been found more than once.
     114:  * To check if a block has been found as a duplicate it is only
     115:  * necessary to search from duplist through muldup. To find the
     116:  * total number of times that a block has been found as a duplicate
     117:  * the entire list must be searched for occurences of the block
     118:  * in question. The following diagram shows a sample list where
     119:  * w (found twice), x (found once), y (found three times), and z
     120:  * (found once) are duplicate block numbers:
     121:  *
     122:  *    w -> y -> x -> z -> y -> w -> y
     123:  *    ^		     ^
     124:  *    |		     |
     125:  * duplist	  muldup
     126:  */
     127:
     128: #define DUPTBLSIZE  100
     129:
     130: daddr_t duplist[DUPTBLSIZE];    /* head of dup list */
     131: daddr_t *enddup;            /* next entry in dup table */
     132: daddr_t *muldup;        /* multiple dups part of table */
     133:
     134: /*
     135:  * List of inodes with zero link counts.
     136:  */
     137:
     138: #define MAXLNCNT    50
     139:
     140: ino_t   zlnlist[MAXLNCNT];  /* zero link count table */
     141: ino_t   *zlnp;
     142:
     143: #define MAXDATA ((unsigned)56 * 1024)
     144: #define MEMUNIT 64
     145: #define NINOBLK 4       /* number of blocks of inodes to read at once */
     146:
     147: char    inobuf[NINOBLK*INOPB*sizeof (struct dinode)];   /* allocate now */
     148: daddr_t startib;
     149:
     150: unsigned int memsize;
     151: char    rawflg;
     152: char    *devname;
     153: char    nflag;          /* assume a no response */
     154: char    yflag;          /* assume a yes response */
     155: char    sflag;          /* rebuild free list */
     156: int debug;          /* output debugging info */
     157: char    preen;          /* just fix normal inconsistencies */
     158: char    hotroot;        /* checking root device */
     159: char    fixfree;        /* force rebuild of freelist */
     160: char    *membase;       /* base of memory we get */
     161:
     162: char    *blockmap;      /* ptr to primary blk allocation map */
     163: char    *freemap;       /* ptr to secondary blk allocation map */
     164: char    *statemap;      /* ptr to inode state table */
     165: short   *lncntp;        /* ptr to link count table */
     166:
     167: char    pathname[MAXPATHLEN];   /* current pathname */
     168: char    scrfile[80];        /* scratchfile name */
     169: int cylsize;        /* num blocks per cylinder */
     170: int stepsize;       /* num blocks for spacing purposes */
     171: char    *pathp;         /* pointer to pathname position */
     172: char    *endpathname;
     173:
     174: daddr_t fmin;           /* block number of the first data block */
     175: daddr_t fmax;           /* number of blocks in the volume */
     176: ino_t   imax;           /* number of inodes */
     177: ino_t   lastino;        /* hiwater mark of inodes */
     178: ino_t   lfdir;          /* lost & found directory inode number */
     179: char    *lfname;        /* lost & found directory name */
     180:
     181: off_t   bmapsz;         /* num chars in blockmap */
     182: daddr_t bmapblk;        /* starting blk of block map */
     183: daddr_t smapblk;        /* starting blk of state map */
     184: daddr_t lncntblk;       /* starting blk of link cnt table */
     185: daddr_t fmapblk;        /* starting blk of free map */
     186:
     187: daddr_t n_blks;         /* number of blocks used */
     188: daddr_t n_files;        /* number of files seen */
     189: daddr_t n_free;         /* number of free blocks */
     190: int badblk, dupblk;
     191:
     192: #define outrange(x) (x < fmin || x >= fmax)
     193: #define zapino(x)   (*(x) = zino)
     194: struct  dinode  zino;
     195:
     196: #define setlncnt(x,n)   dolncnt(x,0,n)
     197: #define getlncnt(x) dolncnt(x,1,0)
     198: #define declncnt(x) dolncnt(x,2,0)
     199: #define inclncnt(x) dolncnt(x,3,0)
     200:
     201: #define setbmap(x)  domap(x,0)
     202: #define getbmap(x)  domap(x,1)
     203: #define clrbmap(x)  domap(x,2)
     204:
     205: #define setfmap(x)  domap(x,0+4)
     206: #define getfmap(x)  domap(x,1+4)
     207: #define clrfmap(x)  domap(x,2+4)
     208:
     209: #define setstate(x,y)   dostate(x,y,0)
     210: #define getstate(x) dostate(x,0,1)
     211:
     212: #define ALTERED 010
     213: #define KEEPON  04
     214: #define SKIP    02
     215: #define STOP    01
     216:
     217: time_t  time();
     218: DINODE  *ginode();
     219: BUFAREA *getblk();
     220: int findino();
     221: daddr_t allocblk();

#### Defined variables

badblk defined in line 190; used 6 times

- in /usr/src/sbin/fsck/pass1.c line 119, 143
- in /usr/src/sbin/fsck/pass5.c line 41-47(3), 195

blockmap defined in line 162; used 4 times

- in /usr/src/sbin/fsck/pass5.c line 32
- in /usr/src/sbin/fsck/setup.c line 148, 157
- in /usr/src/sbin/fsck/utilities.c line 492

cylsize defined in line 169; used 9 times

- in /usr/src/sbin/fsck/pass5.c line 140, 146
- in /usr/src/sbin/fsck/utilities.c line 419-429(3), 435-438(4)

debug defined in line 156; used 8 times

- in /usr/src/sbin/fsck/main.c line 64, 234-237(2)
- in /usr/src/sbin/fsck/pass1.c line 91, 101
- in /usr/src/sbin/fsck/pass5.c line 22, 50
- in /usr/src/sbin/fsck/utilities.c line 35

devname defined in line 152; used 5 times

- in /usr/src/sbin/fsck/inode.c line 205
- in /usr/src/sbin/fsck/main.c line 172
- in /usr/src/sbin/fsck/utilities.c line 388-392(2), 408

dfile defined in line 85; used 23 times

- in /usr/src/sbin/fsck/inode.c line 98, 126-129(2)
- in /usr/src/sbin/fsck/main.c line 220, 255-260(2)
- in /usr/src/sbin/fsck/pass1b.c line 40
- in /usr/src/sbin/fsck/pass5.c line 175
- in /usr/src/sbin/fsck/setup.c line 51, 57-58(2), 65, 73
- in /usr/src/sbin/fsck/utilities.c line 49, 98, 140-151(8)

dupblk defined in line 190; used 6 times

- in /usr/src/sbin/fsck/pass1.c line 119, 158
- in /usr/src/sbin/fsck/pass5.c line 41, 48-49(2), 205

endpathname defined in line 172; used 1 times

- in /usr/src/sbin/fsck/pass2.c line 198

fileblk defined in line 67; used 27 times

- in line 74-78(3)
- in /usr/src/sbin/fsck/dir.c line 95-100(3), 120-121(2), 137, 156, 449-454(4), 461-463(3), 471, 497-498(2), 507
- in /usr/src/sbin/fsck/main.c line 220
- in /usr/src/sbin/fsck/pass5.c line 121, 174-175(2)
- in /usr/src/sbin/fsck/setup.c line 68
- in /usr/src/sbin/fsck/utilities.c line 140

fixfree defined in line 159; used 9 times

- in /usr/src/sbin/fsck/pass5.c line 28, 53-56(2), 63-67(3), 111, 192, 204

freemap defined in line 163; used 5 times

- in /usr/src/sbin/fsck/pass5.c line 31-32(2)
- in /usr/src/sbin/fsck/setup.c line 148, 159
- in /usr/src/sbin/fsck/utilities.c line 488

hotroot defined in line 158; used 8 times

- in /usr/src/sbin/fsck/main.c line 107, 183, 264-267(2), 281, 299
- in /usr/src/sbin/fsck/setup.c line 50, 131

inoblk defined in line 66; used 7 times

- in line 73
- in /usr/src/sbin/fsck/inode.c line 125-127(2)
- in /usr/src/sbin/fsck/pass1b.c line 40
- in /usr/src/sbin/fsck/setup.c line 69
- in /usr/src/sbin/fsck/utilities.c line 119, 147

inobuf defined in line 147; used 4 times

- in /usr/src/sbin/fsck/inode.c line 126-133(3)
- in /usr/src/sbin/fsck/utilities.c line 120

lfname defined in line 179; used 6 times

- in /usr/src/sbin/fsck/dir.c line 224, 307, 319, 350, 367-368(2)

lncntp defined in line 165; used 7 times

- in /usr/src/sbin/fsck/setup.c line 95-97(3), 149, 160
- in /usr/src/sbin/fsck/utilities.c line 529-531(2)

membase defined in line 160; used 2 times

- in /usr/src/sbin/fsck/main.c line 96
- in /usr/src/sbin/fsck/setup.c line 102

memsize defined in line 150; used 8 times

- in /usr/src/sbin/fsck/main.c line 93-98(7)
- in /usr/src/sbin/fsck/setup.c line 101

nflag defined in line 153; used 4 times

- in /usr/src/sbin/fsck/main.c line 69, 76
- in /usr/src/sbin/fsck/setup.c line 57
- in /usr/src/sbin/fsck/utilities.c line 49

pathname defined in line 167; used 11 times

- in /usr/src/sbin/fsck/dir.c line 19, 59, 203-210(3), 302, 466
- in /usr/src/sbin/fsck/pass2.c line 29, 200, 229
- in /usr/src/sbin/fsck/pass3.c line 28

pathp defined in line 171; used 20 times

- in /usr/src/sbin/fsck/dir.c line 302-304(3), 368-369(2), 377-379(3)
- in /usr/src/sbin/fsck/pass2.c line 29, 196-203(6), 260-261(2)
- in /usr/src/sbin/fsck/pass3.c line 28-30(3)

poolhead defined in line 69; used 8 times

- in /usr/src/sbin/fsck/setup.c line 136-142(4), 156
- in /usr/src/sbin/fsck/utilities.c line 567, 574-575(2)

preen defined in line 157; used 46 times

- in /usr/src/sbin/fsck/dir.c line 61-63(2), 229, 236, 295-297(2), 316-325(3), 395, 467
- in /usr/src/sbin/fsck/inode.c line 149-150(2), 204
- in /usr/src/sbin/fsck/main.c line 60, 103, 125-130(2), 150, 174, 181, 193, 202, 209, 216, 225, 262
- in /usr/src/sbin/fsck/pass1.c line 60, 79-81(2), 145, 161
- in /usr/src/sbin/fsck/pass2.c line 232
- in /usr/src/sbin/fsck/pass5.c line 68, 90-92(2), 193
- in /usr/src/sbin/fsck/setup.c line 55-63(3), 90
- in /usr/src/sbin/fsck/utilities.c line 46, 130, 346, 387, 407

rawflg defined in line 151; used 2 times

- in /usr/src/sbin/fsck/setup.c line 40-44(2)

sblk defined in line 68; used 9 times

- in line 75-79(2)
- in /usr/src/sbin/fsck/setup.c line 67, 75-76(2)
- in /usr/src/sbin/fsck/utilities.c line 141-145(4)

scrfile defined in line 168; used 5 times

- in /usr/src/sbin/fsck/main.c line 56
- in /usr/src/sbin/fsck/setup.c line 112-121(4)

sfile defined in line 85; used 10 times

- in /usr/src/sbin/fsck/setup.c line 123-125(3), 131, 146
- in /usr/src/sbin/fsck/utilities.c line 95, 152-155(4)

sflag defined in line 155; used 2 times

- in /usr/src/sbin/fsck/main.c line 47
- in /usr/src/sbin/fsck/pass5.c line 27

statemap defined in line 164; used 6 times

- in /usr/src/sbin/fsck/setup.c line 148, 158-160(3)
- in /usr/src/sbin/fsck/utilities.c line 452-454(2)

stepsize defined in line 170; used 8 times

- in /usr/src/sbin/fsck/pass5.c line 140-145(2)
- in /usr/src/sbin/fsck/utilities.c line 420-425(2), 434-438(4)

yflag defined in line 154; used 3 times

- in /usr/src/sbin/fsck/main.c line 70-75(2)
- in /usr/src/sbin/fsck/utilities.c line 53

zino defined in line 194; used 3 times

- in line 193
- in /usr/src/sbin/fsck/pass1.c line 42, 77

#### Defined struct's

bufarea defined in line 48; used 4 times

- in line 49(2), 64(2)

filecntl defined in line 81; used 8 times

- in /usr/src/sbin/fsck/utilities.c line 90(2), 109(2), 159(2), 188(2)

inodesc defined in line 89; used 78 times

- in /usr/src/sbin/fsck/dir.c line 34-40(6), 74(2), 115(2), 166(2), 214(2), 244(2), 269(2), 286-290(4), 409-413(4)
- in /usr/src/sbin/fsck/inode.c line 20(2), 56(2), 138(2), 161(2), 172(2), 291-295(4)
- in /usr/src/sbin/fsck/pass1.c line 24(2), 35(2), 135(2)
- in /usr/src/sbin/fsck/pass1b.c line 22-25(4), 44(2)
- in /usr/src/sbin/fsck/pass2.c line 23-25(4), 85(2)
- in /usr/src/sbin/fsck/pass3.c line 21-24(4)
- in /usr/src/sbin/fsck/pass4.c line 21-24(4), 69(2)
- in /usr/src/sbin/fsck/pass5.c line 18(2)
- in /usr/src/sbin/fsck/utilities.c line 239(2), 254(2), 262(2), 335(2)

#### Defined enum's

fixstate defined in line 87; used 2 times

- in line 90(2)

#### Defined typedef's

BUFAREA defined in line 64; used 27 times

- in line 66-69(4), 219
- in /usr/src/sbin/fsck/inode.c line 64
- in /usr/src/sbin/fsck/main.c line 95-98(2)
- in /usr/src/sbin/fsck/pass5.c line 21, 35-36(2)
- in /usr/src/sbin/fsck/setup.c line 30, 135-137(3)
- in /usr/src/sbin/fsck/utilities.c line 85-91(3), 110, 448, 482, 500, 527, 534, 561-567(3)

DINODE defined in line 36; used 24 times

- in line 218
- in /usr/src/sbin/fsck/dir.c line 37, 197, 217, 283, 408, 436, 490, 536
- in /usr/src/sbin/fsck/inode.c line 19-24(2), 114-119(2), 133, 142, 189, 248, 293
- in /usr/src/sbin/fsck/pass1.c line 22
- in /usr/src/sbin/fsck/pass1b.c line 21
- in /usr/src/sbin/fsck/pass2.c line 22, 90
- in /usr/src/sbin/fsck/pass3.c line 20
- in /usr/src/sbin/fsck/utilities.c line 22

DIRECT defined in line 37; used 19 times

- in line 98
- in /usr/src/sbin/fsck/dir.c line 31, 76, 93, 113-117(2), 127, 143-148(2), 167, 246-247(2), 271
- in /usr/src/sbin/fsck/inode.c line 163, 174
- in /usr/src/sbin/fsck/pass2.c line 87-91(2), 129, 150

#### Defined macros

ADDR defined in line 104; used 9 times

- in /usr/src/sbin/fsck/dir.c line 356
- in /usr/src/sbin/fsck/inode.c line 36, 68, 296
- in /usr/src/sbin/fsck/pass1.c line 36
- in /usr/src/sbin/fsck/pass1b.c line 26
- in /usr/src/sbin/fsck/pass2.c line 26
- in /usr/src/sbin/fsck/pass4.c line 25
- in /usr/src/sbin/fsck/pass5.c line 25

ALLOC defined in line 39; used 1 times

- in /usr/src/sbin/fsck/pass1.c line 41

ALTERED defined in line 212; used 19 times

- in /usr/src/sbin/fsck/dir.c line 94-97(2), 265, 276, 351, 425-429(2)
- in /usr/src/sbin/fsck/pass2.c line 104, 122, 133, 159, 173, 185, 192, 249, 265
- in /usr/src/sbin/fsck/utilities.c line 349, 356-359(2)

BITMASK defined in line 31; used 1 times

- in /usr/src/sbin/fsck/utilities.c line 486

BITSHIFT defined in line 30; used 1 times

- in /usr/src/sbin/fsck/utilities.c line 485

BITSPB defined in line 29; used 2 times

- in line 33
- in /usr/src/sbin/fsck/setup.c line 95

BUFSIZ defined in line 19; used 1 times

- in line 18

CYLSIZE defined in line 13; used 1 times

- in /usr/src/sbin/fsck/pass5.c line 151

DATA defined in line 103; used 9 times

- in /usr/src/sbin/fsck/dir.c line 66, 80, 308, 346, 382, 414
- in /usr/src/sbin/fsck/pass3.c line 25
- in /usr/src/sbin/fsck/utilities.c line 263, 342

DCLEAR defined in line 26; used 3 times

- in /usr/src/sbin/fsck/dir.c line 48
- in /usr/src/sbin/fsck/inode.c line 226
- in /usr/src/sbin/fsck/pass2.c line 247

DFOUND defined in line 25; used 5 times

- in /usr/src/sbin/fsck/dir.c line 43, 363, 515
- in /usr/src/sbin/fsck/pass2.c line 245
- in /usr/src/sbin/fsck/utilities.c line 258

DIRCT defined in line 40; used 7 times

- in /usr/src/sbin/fsck/dir.c line 208, 225, 292, 337
- in /usr/src/sbin/fsck/inode.c line 146
- in /usr/src/sbin/fsck/pass1.c line 118
- in /usr/src/sbin/fsck/pass2.c line 223

DSTATE defined in line 24; used 11 times

- in /usr/src/sbin/fsck/dir.c line 41, 515-520(2)
- in /usr/src/sbin/fsck/inode.c line 261
- in /usr/src/sbin/fsck/pass1.c line 118
- in /usr/src/sbin/fsck/pass2.c line 52, 72, 223
- in /usr/src/sbin/fsck/pass3.c line 27, 44
- in /usr/src/sbin/fsck/utilities.c line 258

DUPTBLSIZE defined in line 128; used 3 times

- in line 130
- in /usr/src/sbin/fsck/pass1.c line 167
- in /usr/src/sbin/fsck/pass5.c line 205

FCLEAR defined in line 27; used 2 times

- in /usr/src/sbin/fsck/inode.c line 222
- in /usr/src/sbin/fsck/pass1.c line 125

FSTATE defined in line 23; used 3 times

- in /usr/src/sbin/fsck/inode.c line 265
- in /usr/src/sbin/fsck/pass1.c line 118
- in /usr/src/sbin/fsck/pass2.c line 223

KEEPON defined in line 213; used 22 times

- in /usr/src/sbin/fsck/dir.c line 107, 257, 274
- in /usr/src/sbin/fsck/inode.c line 30, 52, 70, 111, 166, 177, 183
- in /usr/src/sbin/fsck/pass1.c line 137
- in /usr/src/sbin/fsck/pass1b.c line 56-59(2)
- in /usr/src/sbin/fsck/pass2.c line 177, 186, 193, 263-265(2)
- in /usr/src/sbin/fsck/pass4.c line 80-85(2)
- in /usr/src/sbin/fsck/pass5.c line 119, 216

LSTATE defined in line 32; used 2 times

- in line 33
- in /usr/src/sbin/fsck/utilities.c line 451

MAXBAD defined in line 10; used 2 times

- in /usr/src/sbin/fsck/pass1.c line 143
- in /usr/src/sbin/fsck/pass5.c line 195

MAXCYL defined in line 14; used 4 times

- in /usr/src/sbin/fsck/pass5.c line 129-130(2), 148
- in /usr/src/sbin/fsck/utilities.c line 436

MAXDATA defined in line 143; used 1 times

- in /usr/src/sbin/fsck/main.c line 94

MAXDUP defined in line 9; used 1 times

- in /usr/src/sbin/fsck/pass1.c line 158

MAXINOPB defined in line 45; used 1 times

- in line 59

MAXLNCNT defined in line 138; used 2 times

- in line 140
- in /usr/src/sbin/fsck/pass1.c line 111

MAXNINDIR defined in line 44; used 1 times

- in line 56

MEMUNIT defined in line 144; used 1 times

- in /usr/src/sbin/fsck/main.c line 97

NINOBLK defined in line 145; used 5 times

- in line 147
- in /usr/src/sbin/fsck/inode.c line 124-129(3)
- in /usr/src/sbin/fsck/utilities.c line 120

SKIP defined in line 214; used 7 times

- in /usr/src/sbin/fsck/dir.c line 87
- in /usr/src/sbin/fsck/inode.c line 75-79(2)
- in /usr/src/sbin/fsck/pass1.c line 151
- in /usr/src/sbin/fsck/pass1b.c line 50
- in /usr/src/sbin/fsck/pass4.c line 75
- in /usr/src/sbin/fsck/pass5.c line 201

SMASK defined in line 34; used 2 times

- in /usr/src/sbin/fsck/utilities.c line 465, 471

SPECIAL defined in line 41; used 2 times

- in /usr/src/sbin/fsck/inode.c line 29
- in /usr/src/sbin/fsck/pass1.c line 67

SPERB defined in line 46; used 3 times

- in line 55
- in /usr/src/sbin/fsck/utilities.c line 534-538(2)

STATEPB defined in line 33; used 3 times

- in /usr/src/sbin/fsck/setup.c line 96
- in /usr/src/sbin/fsck/utilities.c line 450-451(2)

STEPSIZE defined in line 12; used 1 times

- in /usr/src/sbin/fsck/pass5.c line 150

STOP defined in line 215; used 19 times

- in /usr/src/sbin/fsck/dir.c line 104-107(2), 265, 276
- in /usr/src/sbin/fsck/inode.c line 40, 48, 108, 168, 181
- in /usr/src/sbin/fsck/pass1.c line 149, 165, 171
- in /usr/src/sbin/fsck/pass1b.c line 36, 56
- in /usr/src/sbin/fsck/pass5.c line 116, 199, 209
- in /usr/src/sbin/fsck/utilities.c line 274, 281

USTATE defined in line 22; used 10 times

- in /usr/src/sbin/fsck/inode.c line 155, 252-255(2), 273, 303
- in /usr/src/sbin/fsck/pass1.c line 52, 82, 127
- in /usr/src/sbin/fsck/pass1b.c line 35
- in /usr/src/sbin/fsck/utilities.c line 473

clrbmap defined in line 203; used 1 times

- in /usr/src/sbin/fsck/pass4.c line 82

clrfmap defined in line 207; never used
declncnt defined in line 198; used 5 times

- in /usr/src/sbin/fsck/dir.c line 376
- in /usr/src/sbin/fsck/pass2.c line 128, 149, 240, 246

dirblk defined in line 77; used 11 times

- in /usr/src/sbin/fsck/dir.c line 127, 143-148(2), 452-458(4), 465, 502-504(3)

dirty defined in line 72; used 12 times

- in /usr/src/sbin/fsck/dir.c line 100, 137, 156, 461, 471, 507
- in /usr/src/sbin/fsck/inode.c line 95
- in /usr/src/sbin/fsck/pass5.c line 38
- in /usr/src/sbin/fsck/setup.c line 145
- in /usr/src/sbin/fsck/utilities.c line 468, 518, 557

fbdirty defined in line 74; used 1 times

- in /usr/src/sbin/fsck/pass5.c line 173

freeblk defined in line 78; used 17 times

- in /usr/src/sbin/fsck/pass5.c line 42-44(2), 105-108(3), 114-115(3), 165-166(2), 172-184(7)

getbmap defined in line 202; used 4 times

- in /usr/src/sbin/fsck/pass1.c line 153
- in /usr/src/sbin/fsck/pass4.c line 76
- in /usr/src/sbin/fsck/pass5.c line 170
- in /usr/src/sbin/fsck/utilities.c line 224

getfmap defined in line 206; used 1 times

- in /usr/src/sbin/fsck/pass5.c line 203

getlncnt defined in line 197; used 2 times

- in /usr/src/sbin/fsck/dir.c line 359
- in /usr/src/sbin/fsck/pass4.c line 33

getstate defined in line 210; used 22 times

- in /usr/src/sbin/fsck/dir.c line 41-42(2), 363, 514
- in /usr/src/sbin/fsck/inode.c line 219, 234, 252-255(2)
- in /usr/src/sbin/fsck/pass1b.c line 35
- in /usr/src/sbin/fsck/pass2.c line 30, 80, 211, 245-257(4)
- in /usr/src/sbin/fsck/pass3.c line 27, 44
- in /usr/src/sbin/fsck/pass4.c line 29, 63
- in /usr/src/sbin/fsck/pass5.c line 84
- in /usr/src/sbin/fsck/utilities.c line 257

inclncnt defined in line 199; used 2 times

- in /usr/src/sbin/fsck/dir.c line 392, 522

initbarea defined in line 71; used 5 times

- in /usr/src/sbin/fsck/inode.c line 76
- in /usr/src/sbin/fsck/setup.c line 67-69(3), 138

inodirty defined in line 73; used 18 times

- in /usr/src/sbin/fsck/dir.c line 55, 64, 238, 355, 391, 423, 472, 509, 526, 541
- in /usr/src/sbin/fsck/inode.c line 156, 281, 302
- in /usr/src/sbin/fsck/pass1.c line 49, 64, 84, 129
- in /usr/src/sbin/fsck/pass2.c line 71

outrange defined in line 192; used 7 times

- in /usr/src/sbin/fsck/dir.c line 85
- in /usr/src/sbin/fsck/inode.c line 74
- in /usr/src/sbin/fsck/pass1.c line 141
- in /usr/src/sbin/fsck/pass1b.c line 49
- in /usr/src/sbin/fsck/pass4.c line 74
- in /usr/src/sbin/fsck/pass5.c line 170, 191

sbdirty defined in line 75; used 7 times

- in /usr/src/sbin/fsck/dir.c line 101
- in /usr/src/sbin/fsck/main.c line 257
- in /usr/src/sbin/fsck/pass5.c line 60, 74, 94, 185
- in /usr/src/sbin/fsck/utilities.c line 144

sblock defined in line 79; used 39 times

- in /usr/src/sbin/fsck/main.c line 182, 233-236(3), 256
- in /usr/src/sbin/fsck/pass1.c line 62
- in /usr/src/sbin/fsck/pass5.c line 42-44(2), 52-59(3), 71-73(3), 82-83(2), 93, 133-142(9), 153-154(2), 171, 182-184(2)
- in /usr/src/sbin/fsck/setup.c line 73-85(7), 91

setbmap defined in line 201; used 3 times

- in /usr/src/sbin/fsck/pass1.c line 31, 155
- in /usr/src/sbin/fsck/utilities.c line 226

setfmap defined in line 205; used 1 times

- in /usr/src/sbin/fsck/pass5.c line 214

setlncnt defined in line 196; used 4 times

- in /usr/src/sbin/fsck/dir.c line 360, 511, 521
- in /usr/src/sbin/fsck/pass1.c line 109

setstate defined in line 209; used 18 times

- in /usr/src/sbin/fsck/dir.c line 43-48(2), 519
- in /usr/src/sbin/fsck/inode.c line 155, 222-226(2), 261-265(2), 273, 303
- in /usr/src/sbin/fsck/pass1.c line 52, 82, 118, 125-127(2)
- in /usr/src/sbin/fsck/pass2.c line 52, 72, 223

zapino defined in line 193; used 5 times

- in /usr/src/sbin/fsck/inode.c line 154, 301
- in /usr/src/sbin/fsck/pass1.c line 48, 83, 128

#### Usage of this include

fsck.h used 11 times

- in /usr/src/sbin/fsck/dir.c line 15
- in /usr/src/sbin/fsck/inode.c line 16
- in /usr/src/sbin/fsck/main.c line 22
- in /usr/src/sbin/fsck/pass1.c line 15
- in /usr/src/sbin/fsck/pass1b.c line 14
- in /usr/src/sbin/fsck/pass2.c line 16
- in /usr/src/sbin/fsck/pass3.c line 14
- in /usr/src/sbin/fsck/pass4.c line 14
- in /usr/src/sbin/fsck/pass5.c line 14
- in /usr/src/sbin/fsck/setup.c line 17
- in /usr/src/sbin/fsck/utilities.c line 17

Last modified: 1990-04-26 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1278 |