Inode
Structure
File/Dir |
Owner |
Access |
Size |
Links |
|||||||||||
|
p0 |
p1
|
p2 |
p3 |
p4 |
p5 |
p6 |
p7 |
p8 |
I1 |
I2 |
I3 |
||||
File/Dir
= 1/0 (File = 1, Dir = 0).
Owner
= login inode when file was created.
Access
= owner/group/world (read/write/execute).
Size
= file/directory size in bytes.
Links
= Number of hard links to inode.
p0 –
p9 = direct block pointer.
I1
= block pointer with one level of indirection.
I2
= block pointer with two levels of indirection.
I3
= block pointer with three levels of indirection.
If
a block can contain 256 pointers,
max file block size = 9 + 256 + 256*256 + 256*256*256