IT lexicon › Programming › Directory block

Directory block

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

A data block containing directory entries—the mapping between filenames and inodes.

A directory is a special file type. Its contents—a list of (filename, inode-number) pairs—are stored in ordinary data blocks. A directory can grow across multiple blocks as the file count increases. When looking up a file, the directory blocks are scanned to find the matching inode. Modern filesystems use B-trees or hash tables for directory blocks to enable faster lookup than linear scanning.

← Back to the lexicon