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