[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Need to remove a ghost file, but can't because it doesn't exist



On Thu, Nov 16, 2006 at 11:21:40AM -0600, John Hasler wrote:
> hendrik writes:
> > I thought that a deleted file that was still being read *was* unlinked
> > from the directory, just not removed from the disk until it was closed.
> 
> The directory entry is deleted and the link count is decremented when the
> file is deleted from the directory.  When the file was opened the link
> count was incremented, so this does not bring it to zero.  When the file is
> closed the link count is decremented.  If this brings the link count to
> zero the file is deleted.
> -- 
> John Hasler
> 
Thanks.  That was what I thought happened.

-- hendrik



Reply to: