Filesystem check
A verification process validating filesystem metadata structures for logical and physical consistency.
Filesystem checks traverse all metadata—inodes, block bitmaps, directory trees—verifying mutual consistency. For example: allocated block count must match the bitmap; each inode's link count must equal the number of directory entries pointing to it. Broken invariants are reported and may be repaired or logged.
Modern filesystems (ext4, btrfs, ZFS) use journaling to accelerate checks—only log entries after the last checkpoint are examined, not the entire disk. Without journaling, checking a terabyte filesystem could take hours.