Jump to content

Inode pointer structure

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Cedars (talk | contribs) at 09:00, 29 June 2008 (initial entry). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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.