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