BSD 4_2 development
[unix-history] / usr / man / man8 / clri.8
CommitLineData
85c22195
C
1.TH CLRI 8 "4 February 1983"
2.UC 4
3.SH NAME
4clri \- clear i-node
5.SH SYNOPSIS
6.B /etc/clri
7filesystem i-number ...
8.SH DESCRIPTION
9.B N.B.:
10.I Clri
11is obsoleted for normal file system repair work by
12.IR fsck (8).
13.PP
14.I Clri
15writes zeros on the i-nodes
16with the decimal
17.I i-numbers
18on the
19.I filesystem.
20After
21.I clri,
22any blocks
23in the affected file
24will show up as `missing' in an
25.IR icheck (8)
26of the
27.I filesystem.
28.PP
29Read and write permission is required on the specified
30file system device.
31The i-node becomes allocatable.
32.PP
33The primary purpose of this routine
34is to remove a file which
35for some reason appears in no
36directory.
37If it is used to zap an i-node
38which does appear in a directory, care should be taken to track down
39the entry and remove it.
40Otherwise, when the i-node is reallocated to some new file,
41the old entry will still point to that file.
42At that point removing the old entry will destroy the new file.
43The new entry will again point to an unallocated i-node,
44so the whole cycle is likely to be repeated again and again.
45.SH "SEE ALSO"
46icheck(8)
47.SH BUGS
48If the file is open,
49.I clri
50is likely to be ineffective.