Interview Prep/Linux/Filesystem Hierarchy, Inodes & Links

What is journaling in a filesystem?

IntermediateConceptFilesystem Hierarchy, Inodes & Links
Answer

A journal is a log where the filesystem writes intended metadata changes (and optionally data) before applying them. After a crash, it replays or discards incomplete transactions instead of running a full scan, so mount after power loss takes seconds. ext4's default data=ordered journals metadata and flushes data blocks before committing the related metadata.

All Linux questions Roadmap: Linux

More on Filesystem Hierarchy, Inodes & Links