Inode pointer structure
Appearance
![]() | This article or section is in a state of significant expansion or restructuring. You are welcome to assist in its construction by editing it as well. If this article or section has not been edited in several days, please remove this template. If you are the editor who added this template and you are actively editing, please be sure to replace this template with {{in use}} during the active editing session. Click on the link for template parameters to use.
This article was last edited by Cedars (talk | contribs) 16 years ago. (Update timer) |
For the Unix File System and related file systems, the 13-pointer array mechanism refers to a structure adopted by the inode of a file to list the addresses of the file's blocks. The thirteen pointers consist of:
- Ten pointers that directly point to blocks of the file's data (direct pointer)
- One pointer that points to a block of pointers, each of which point to blocks of the file's data (singly indirect pointers)
- One pointer that points to a block of pointers that point to other blocks of pointers, each of which point to blocks of the file's data (doubly indirect pointers)
- One pointer that points to a block of pointers that point to other blocks of pointers that point to other block of pointers, each of which point to blocks of the file's data (triply indirect pointers)
The 13-pointer array mechanism is therefore able to describe very large files using fixed inode block sizes while not allocating gregarious amounts of unutilised space and files less than 10 blocks (in practice this would usually correspond to around 80 kB) using only a single inode block.