1DCHECK(1M)                                                          DCHECK(1M)
2
3
4

NAME

6       dcheck - file system directory consistency check
7

SYNOPSIS

9       dcheck [ -i numbers ] [ filesystem ]
10

DESCRIPTION

12       Dcheck  reads  the  directories in a file system and compares the link-
13       count in each i-node with the number of directory entries by  which  it
14       is  referenced.   If the file system is not specified, a set of default
15       file systems is checked.
16
17       The -i flag is followed by a list of i-numbers; when one  of  those  i-
18       numbers turns up in a directory, the number, the i-number of the direc‐
19       tory, and the name of the entry are reported.
20
21       The program is fastest if the raw version of the special file is  used,
22       since the i-list is read in large chunks.
23

FILES

25       Default file systems vary with installation.
26

SEE ALSO

28       icheck(1), filsys(5), clri(1), ncheck(1)
29

DIAGNOSTICS

31       When  a file turns up for which the link-count and the number of direc‐
32       tory entries disagree, the  relevant  facts  are  reported.   Allocated
33       files which have 0 link-count and no entries are also listed.  The only
34       dangerous situation occurs when there are more entries than  links;  if
35       entries  are  removed,  so  the  link-count  drops  to 0, the remaining
36       entries point to thin air.  They should be  removed.   When  there  are
37       more  links  than  entries,  or there is an allocated file with neither
38       links nor entries, some disk space may be lost but the  situation  will
39       not degenerate.
40

BUGS

42       Since  dcheck  is inherently two-pass in nature, extraneous diagnostics
43       may be produced if applied to active file systems.
44
45
46
47                                                                    DCHECK(1M)
Impressum