From: Dave I. <da...@dm...> - 2009-01-11 23:07:17
|
François Thiebolt wrote: > > Thanks roman, so what has to be done is : > > - unlink inode from its parentdir thus decreases its number of hard links > - at close time, delete the inode if nlink==0 > Don't forget that your file system may not always be cleanly unmounted, so you may want to record the living dead inode somewhere before unlinking it. Then check the list of zombie inodes at mount, and check to see if it has any links. I'm not sure what the best course of action is, but I would imagine that you then remove the link and actually delete the inode, as you can guarantee nobody has it open. D |