clri(1m)
_________________________________________________________________
clri
clear inode
_________________________________________________________________
SYNTAX
/etc/clri filesys | special i-number ...
DESCRIPTION
Clri writes zeros on the bytes occupied by the inode numbered i-
number. The inode becomes allocatable. Filesys is the pathname
of the directory with which the file system is associated in the
file /etc/fstab. Special is the pathname of a special file
referring to a device containing a file system. The file system
must be unmounted.
After clri is executed, any blocks in the affected file will show
up as unallocated in an fsck(1M) of the file system. Use clri
very carefully and only in emergencies, since it can introduce
inconsistencies into the file system.
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 that
doesn't appear in any directory. If you use it to clear an inode
that does appear in a directory, you should also remove the
directory entry. Otherwise, when the inode is reallocated to a
new file, the old entry will still point to that file. If you
remove the old entry then, the new file will be destroyed. Since
the new entry will again point to an unallocated inode, the whole
cycle is likely to be repeated.
NOTE:
Fsck automatically removes files that don't appear in any
directory. Whenever possible, use fsck instead of clri.
SEE ALSO
fsck(1M), fsdb(1M), ncheck(1M), fs(4).
BUGS
Clri cannot be run on the root file system because that file
system cannot be unmounted.
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)