From ee4118d495000ca2e9998b926b9ca247fdff09db Mon Sep 17 00:00:00 2001 From: Ken Thompson Date: Thu, 15 Feb 1973 12:56:03 -0500 Subject: [PATCH] Research V3 development Work on file man/man8/dcheck.8 Co-Authored-By: Dennis Ritchie Synthesized-from: v3 --- man/man8/dcheck.8 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 man/man8/dcheck.8 diff --git a/man/man8/dcheck.8 b/man/man8/dcheck.8 new file mode 100644 index 0000000000..9f9d8eec89 --- /dev/null +++ b/man/man8/dcheck.8 @@ -0,0 +1,44 @@ +.pa 1 +.he 'DCHECK (VIII)'1/20/73'DCHECK (VIII)' +.ti 0 +NAME dcheck -- directory consistency check +.sp +.ti 0 +SYNOPSIS dcheck______ [ -l__ ] [ device ] +.sp +.ti 0 +DESCRIPTION dcheck______ +builds an image of the directory hierarchy +of the specified device +by reading all its directories (using physical I/O +guided by the i-nodes on the device). +A list entry is made for +each file encountered. +A second pass reads the i-nodes and for +each file compares the number of links +specified in its i-node +with the number of entries actually seen. +All discrepancies are noted. +.sp +If no device is specified, +a default device is assumed. +.sp +The argument -l__ causes a complete +listing of the file names on the device +in i-node order. +.sp +.ti 0 +FILES /dev/rk? +.sp +.ti 0 +SEE ALSO check(VIII) +.sp +.ti 0 +DIAGNOSTICS inconsistent i-numbers, +unnamed files, +unreachable files, +loops in directory "hierarchy". +.sp +.ti 0 +BUGS Unreachable files and loops are +discovered only under the "-l" option. -- 2.20.1