File Deletion build scenario case solving a Web server disk full failure in-depth analysis
Reference post: http://oldboy.blog.51cto.com/2561410/612351
Linuxthe file name of the parent directory exists.Blockinside,and point to this fileInodenode,of this fileInodeThe node again marks the point where the file is storedBlockblocks of data. We delete a file,It's not really clear .Inodenodes andBlockthe data. Just in the parent directory of this file .Blockin,Delete the name of this file,So that the file name disappears .,and cannot specify the file'sInodenode,when no file name points to thisInodenode will be released at the same time.Inodenode and the data block that holds the file,and more.Inodemapand theBlockmaplet these locations be used in the future to prevent other file data.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/5B/wKiom1XMF7SBoyvWAAMNeSRB5lo900.jpg "title=" 4.png " alt= "Wkiom1xmf7sboyvwaamnesrb5lo900.jpg"/>
i_link=2 i_count=1 file deletion condition i_link=0 and i_count=0
Linux is controlled by the number of link to delete the file, only if a file does not exist any link, the file will be deleted.
This article from "Xu Liangwei" blog, reproduced please contact the author!
Linux Basic Series (v) Linux System file deletion principle