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