Apex › Systems & OS

inode & indirect blocks

How a classic Unix filesystem (ext2/3, FFS) maps a file offset to a disk block. A fixed-size inode holds a dozen direct pointers for small files (one read to the data), then single-, double-, and triple-indirect pointers — blocks of pointers to blocks of pointers — that extend the same tiny inode to address terabytes, at the cost of one extra disk read per level. Pick a block and watch which pointer path reaches it.

More in Systems & OS