Commit | Line | Data |
---|---|---|
b91e3d7f KB |
1 | .\" Copyright (c) 1988, 1993 |
2 | .\" The Regents of the University of California. All rights reserved. | |
5fa428b1 | 3 | .\" |
ad787160 C |
4 | .\" This module is believed to contain source code proprietary to AT&T. |
5 | .\" Use and redistribution is subject to the Berkeley Software License | |
6 | .\" Agreement and your Software Agreement with AT&T (Western Electric). | |
79c763b5 | 7 | .\" |
ad787160 | 8 | .\" @(#)icheck.8 8.1 (Berkeley) 6/5/93 |
5fa428b1 | 9 | .\" |
ad787160 | 10 | .TH ICHECK 8 "June 5, 1993" |
5fa428b1 KM |
11 | .UC 4 |
12 | .SH NAME | |
13 | icheck \- file system storage consistency check | |
14 | .SH SYNOPSIS | |
11aaec31 | 15 | .B icheck |
5fa428b1 | 16 | [ |
5fa428b1 KM |
17 | .B \-b |
18 | numbers ] | |
19 | [ filesystem ] | |
20 | .SH DESCRIPTION | |
21 | .B N.B.: | |
22 | .I Icheck | |
23 | is obsoleted for normal consistency checking by | |
24 | .IR fsck (8). | |
25 | .PP | |
26 | .I Icheck | |
27 | examines a file system, | |
28 | builds a bit map of used blocks, | |
29 | and compares this bit map against | |
d1256f9e | 30 | the free map maintained on the file system. |
5fa428b1 KM |
31 | If the file system is not specified, |
32 | a set of default file systems | |
33 | is checked. | |
34 | The normal output of | |
35 | .I icheck | |
36 | includes a report of | |
37 | .IP "" | |
38 | The total number of files and the numbers of | |
39 | regular, directory, block special and character special files. | |
40 | .IP "" | |
41 | The total number of blocks in use and the numbers of | |
42 | single-, double-, and triple-indirect blocks and directory blocks. | |
43 | .IP "" | |
44 | The number of free blocks. | |
45 | .IP "" | |
46 | The number of blocks missing; i.e. not in any file | |
d1256f9e | 47 | nor in any free map. |
5fa428b1 KM |
48 | .PP |
49 | Following the | |
50 | .B \-b | |
51 | option is a list of block numbers; | |
52 | whenever any of the named blocks turns up in a file, | |
53 | a diagnostic is produced. | |
54 | .PP | |
55 | .I Icheck | |
56 | is faster if the raw version of the special file is used, | |
57 | since it reads the i-list many blocks at a time. | |
58 | .SH FILES | |
59 | Default file systems vary with installation. | |
60 | .SH "SEE ALSO" | |
61 | fsck(8), dcheck(8), ncheck(8), | |
e46678a9 | 62 | fs(5), clri(8) |
5fa428b1 KM |
63 | .SH DIAGNOSTICS |
64 | For duplicate blocks | |
65 | and bad blocks (which lie outside the file system) | |
66 | .I icheck | |
67 | announces the difficulty, the i-number, and the kind of block involved. | |
68 | If a read error is encountered, | |
69 | the block number of the bad block is printed and | |
70 | .I icheck | |
71 | considers it to contain 0. | |
5fa428b1 KM |
72 | .SH BUGS |
73 | Since | |
74 | .I icheck | |
75 | is inherently two-pass in nature, extraneous diagnostics | |
76 | may be produced if applied to active file systems. | |
77 | .PP | |
78 | It believes even preposterous super-blocks and | |
79 | consequently can get core images. |