home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man8 / dcheck.8 < prev    next >
Encoding:
Text File  |  1975-06-26  |  1.5 KB  |  57 lines

  1. .th DCHECK VIII 2/8/75
  2. .sh NAME
  3. dcheck \*- file system directory consistency check
  4. .sh SYNOPSIS
  5. .bd dcheck
  6. [
  7. .bd \*-i
  8. numbers ]
  9. [ filesystem ]
  10. .sh DESCRIPTION
  11. .it Dcheck
  12. reads the directories in a file system
  13. and compares
  14. the link-count in each i-node with the number of directory
  15. entries by which it is referenced.
  16. If the file system is not specified,
  17. a set of default file systems
  18. is checked.
  19. .s3
  20. The
  21. .bd \*-i
  22. flag
  23. is followed by a list of i-numbers;
  24. when one of those i-numbers turns up
  25. in a directory,
  26. the number, the i-number of the directory,
  27. and the name of the entry are reported.
  28. .s3
  29. The program is fastest if the
  30. raw version of the special file is used,
  31. since the i-list is read in large chunks.
  32. .sh FILES
  33. Currently,
  34. /dev/rrk2 and /dev/rrp0 are the default file systems.
  35. .sh DIAGNOSTICS
  36. When a file turns up for which the link-count and the number
  37. of directory entries disagree,
  38. the relevant facts are reported.
  39. Allocated files which have 0 link-count and no entries are also
  40. listed.
  41. The only dangerous situation
  42. occurs when there are more entries than links;
  43. if entries are removed,
  44. so the link-count drops to 0,
  45. the remaining entries point to thin air.
  46. They should be removed.
  47. When there are more links than entries, or there is
  48. an allocated file with neither links nor entries,
  49. some disk space may be lost but the situation will not degenerate.
  50. .sh "SEE ALSO"
  51. icheck (VIII), fs (V), clri (VIII), ncheck (VIII)
  52. .sh BUGS
  53. Since
  54. .it dcheck
  55. is inherently two-pass in nature, extraneous diagnostics
  56. may be produced if applied to active file systems.
  57.