clri(1M) DG/UX 5.4.2 clri(1M)
NAME
clri - clear inode
SYNOPSIS
/etc/clri filesys|special i-number ...
where:
filesys The pathname of the directory with which the file system is
associated in the file /etc/fstab
special The pathname of a special file referring to a device
containing an unmounted file system
i-number An inode number
DESCRIPTION
Clri writes zeros on the bytes occupied by the inode numbered i-
number. The inode becomes allocatable.
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 primary purpose of this command 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.
SEE ALSO
fsck(1M), fsdb(1M), ncheck(1M), fs(4).
NOTES
Fsck automatically removes files that don't appear in any directory.
Whenever possible, use fsck instead of clri.
Clri cannot be run on the root file system because that file system
cannot be unmounted.
Licensed material--property of copyright holder(s) 1