Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dcheck(8) — Ultrix-11 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

filsys(5)

clri(8)

fsck(8)

icheck(8)

ncheck(8)

dcheck(8)

NAME

dcheck − file system directory consistency check

SYNTAX

dcheck [ −i numbers ] filesystem

DESCRIPTION

The dcheck command reads the directories in a file system and compares the link-count in each inode with the number of directory entries by which it is referenced.  A file system must be specified since there are no default file systems. 

The −i flag is followed by a list of inumbers; when one of those inumbers turns up in a directory, the number, the inumber of the directory, and the name of the entry are reported. 

The program is fastest if the raw version of the special file is used, since the ilist is read in large chunks. 

RESTRICTIONS

Since dcheck is inherently two-pass in nature, extraneous diagnostics may be produced if applied to active file systems. 
For the most part icheck(8) has been superceded by fsck(8).

DIAGNOSTICS

When a file turns up for which the link-count and the number of directory entries disagree, the relevant facts are reported.  Allocated files which have 0 link-count and no entries are also listed.  The only dangerous situation occurs when there are more entries than links; if entries are removed the link-count drops to 0.  When there are more links than entries, or there is an allocated file with neither links nor entries, some disk space may be lost but the situation will not get worse. 

FILES

There are no default file systems, they must be specified. 

SEE ALSO

filsys(5), clri(8), fsck(8), icheck(8), ncheck(8)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026