CLRI(C) XENIX System V CLRI(C)
Name
clri - Clears inode.
Syntax
/etc/clri file-system i-number ...
Description
clri writes zeros on the 64 bytes occupied by the inode
numbered i-number. File-system must be a special filename
referring to a device containing a file system. After clri
is executed, any blocks in the affected file will show up as
``missing'' if the file system is checked with fsck(C). Use
clri only in emergencies and exercise extreme care.
Read and write permission is required on the specified
file-system device. The inode becomes allocatable.
The primary purpose of this routine is to remove a file
which, for some reason, does not appear in a directory. If
you use clri to destroy an inode which does appear in a
directory, track down the entry and remove it. Otherwise,
when the inode is reallocated to some new file, the old
entry will still point to this file. At that point removing
the old entry will destroy the new file. The new entry will
again point to an unallocated inode, so the whole cycle is
likely to be repeated again and again.
See Also
fsck(C), ncheck(C)
Notes
If the file is open, clri is likely to be ineffective.
Page 1 (printed 8/7/87)