IT lexicon › Programming › Double indirection

Double indirection

Programming På svenska → Updated: 2026-11-17

Filesystem concept where an inode contains pointers to blocks that themselves contain pointers to data blocks.

Classic Unix filesystems (ext2, ext3) use a mix of direct block pointers and indirect levels. An inode holds 12 direct pointers to data blocks. For larger files, the inode points to an indirect block—a block entirely filled with 256+ pointers to data blocks. For much larger files, a double-indirect pointer exists: the inode points to a block that points to hundreds of blocks that each point to data blocks. Triple-indirection does the same one level deeper.

This was elegant pre-extent design: a filesystem's practical maximum size was determined by how many indirect levels were worthwhile to store.

← Back to the lexicon