161478Sbostic.\" Copyright (c) 1980, 1993 261478Sbostic.\" The Regents of the University of California. All rights reserved. 318844Smckusick.\" 4*67011Smckusick.\" %sccs.include.redist.man% 518844Smckusick.\" 6*67011Smckusick.\" @(#)clri.8 8.2 (Berkeley) 04/19/94 749089Scael.\" 8*67011Smckusick.Dd 9*67011Smckusick.Dt CLRI 8 10*67011Smckusick.Os BSD 4 11*67011Smckusick.Sh NAME 12*67011Smckusick.Nm clri 13*67011Smckusick.Nd clear an inode 14*67011Smckusick.Sh SYNOPSIS 15*67011Smckusick.Nm clri 16*67011Smckusick.Ar special_device inode_number ... 17*67011Smckusick.Sh DESCRIPTION 18*67011Smckusick.Bf -symbolic 19*67011Smckusick.Nm Clri 2018844Smckusickis obsoleted for normal file system repair work by 21*67011Smckusick.Xr fsck 8 . 22*67011Smckusick.Ef 23*67011Smckusick.Pp 24*67011Smckusick.Nm Clri 25*67011Smckusickzeros out the inodes with the specified inode number(s) 26*67011Smckusickon the filesystem residing on the given 27*67011Smckusick.Ar special_device . 28*67011SmckusickThe 29*67011Smckusick.Xr fsck 8 30*67011Smckusickutility is usually run after 31*67011Smckusick.Nm clri 32*67011Smckusickto reclaim the zero'ed inode(s) and the 33*67011Smckusickblocks previously claimed by those inode(s). 34*67011SmckusickBoth read and write permission are required on the specified 35*67011Smckusick.Ar special_device . 36*67011Smckusick.Pp 3718844SmckusickThe primary purpose of this routine 3818844Smckusickis to remove a file which 39*67011Smckusickfor some reason is not being properly handled by 40*67011Smckusick.Xr fsck 8 . 41*67011SmckusickOnce removed, 42*67011Smckusickit is anticipated that 43*67011Smckusick.Xr fsck 8 44*67011Smckusickwill be able to clean up the resulting mess. 45*67011Smckusick.Sh "SEE ALSO" 46*67011Smckusick.Xr fsck 8 , 47*67011Smckusick.Xr fsdb 8 , 48*67011Smckusick.Xr icheck 8 , 49*67011Smckusick.Xr ncheck 8 50*67011Smckusick.Sh BUGS 51*67011SmckusickIf the file is open, the work of 52*67011Smckusick.Nm clri 53*67011Smckusickwill be lost when the inode is written back to disk from the inode cache. 54