Can someone explain the detail of the 'inode count' when using command 'll'
i can understand why hard links can change that number,but still confused with the number of a directory.
in fact, create a sub dir will change the number of his parent, regular files will not. hard link: file1 | |——> inode -> data block | file2 the 2 files above have a common inode with the count value 2 directoy: assume ./a/b, b is the only sub dir of a inode(a) ——> data block(a) ——> contains {inode:[10, 11, 12], filename:[., .., b]} // this editor will ignore the extra blank, so here i use json instead above show the struct of storage of a dir if a's inode is 9, b's is 12, they are not the same means only 2 filenames are linked to inode 9(a and .) someone can help me understand why? |
Quote:
Quote:
|
Quote:
|
Quote:
|
Quote:
BTW, when you want to post something with spacing preserved, just wrap it in [CODE] ... [/CODE] tags. The "#" icon in the toolbar will do that for you. |
All times are GMT -5. The time now is 01:14 PM. |