Linux Magazine: Journaling Filesystems; The Future Of Storage Under Linux | Linux Today

Linux Magazine: Journaling Filesystems; The Future Of Storage Under Linux

Written By
Web Webster
Web Webster
Oct 29, 2000

“Journaling filesystems are superior to static filesystems
when it comes to guaranteeing data integrity and even when it comes
to flat-out filesystem performance. Replacing the ext2fs static
filesystem with a journaling filesystem will ultimately be a big
win for all Linux users.”

“When a Linux box is rebooted, it runs a program called fsck
(filesystem consistency check) that walks through the entire
filesystem, validating all entries and making sure that blocks are
allocated and referenced correctly. fsck would find the corrupted
directory entry and attempt to repair it. However, there is no
guarantee that fsck will actually be able to repair the damage. …
On a machine with many gigabytes of files, fsck can run for up to
20 minutes per filesystem.”

“Journaling and logging filesystems solve many of these
problems. Journaling and logging filesystems can either keep track
of the changes to a file’s “metadata” (information such as
ownership, creation dates, and so on), or to the data blocks
associated with a file, or to both, rather than maintaining a
single static snapshot of the state of a file. … Journaling and
logging filesystems get around the problem of inconsistencies
introduced during a system crash by using the log. Before any
on-disk structures are changed, an “intent-to-commit” record is
written to the log. The directory structure is then updated and the
log entry is marked as committed. … After a crash, filesystems
can come online almost immediately because only the log entries
after the last checkpoint need to be examined. Any changes in the
log can be quickly “replayed,” and the corrupted part of the disk
will always correspond to the last change added to the log. The log
can then be truncated since it will be invalid, and no data is lost
except for any changes that were being logged when the system went
down.”

Complete
Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.