The ext filesystem – a four-generation retrospective
Aux Base: Library
As I mentioned before, a good basic understanding of ext2 and its successors has been a key element in the popularity of the filesystem. In addition to the usual tools for making and checking ext FS are some good debugging tools, such as debugfs
and dumpe2fs
, which allow power users to dig really deep into the filesystem to analyze it, fix bugs, or save data.
For these tools to work, they must have appropriate insider knowledge of the relevant member of the ext FS family. If a detail of the filesystem changes, the developers are forced to adapt the associated tools. As the number of helper programs grows, the maintenance effort can become immense. The trick used by ext2 and its successors is to collect filesystem information in the libext2fs
library, against which the tools are linked (Listing 2). Ironically, the Btrfs tool, btrfs-convert
, also uses this library, allowing you to convert an existing ext FS in situ to the Btrfs competitor [14].
Listing 2
libext2fs
# ldd /usr/sbin/debugfs /usr/sbin/tune2fs > \ /usr/sbin/mkfs.ext* /usr/sbin/fsck.ext* > \ /usr/sbin/btrfs-convert | grep ext2fs | > \ awk '{print $1}' | uniq libext2fs.so.2
Conclusions
With more than 20 years of history, the ext family of filesystems is one of the most sustainable open source projects in the Linux environment. Its success hinges on several factors. To begin, the 1993 design on one hand allowed for future extension, and on the other hand offered strong backward compatibility. Additionally, the makeup of the development team has remained stable. Early adoption into the Linux kernel didn't hurt, either, helping the filesystem family attract a large developer and user community. Early nomination of ext FS as the standard filesystem for Linux is both a cause and consequence of the success of ext2 and its relatives.
However, it still remains to be seen how ext FS will fare in the coming years (see the box "Looking to the Future"). What will happen after the changing of the guard by Btrfs or XFS? Will the Linux Android smartphone continue to fly the banner of the ext family?
Looking to the Future
In 2008, ext4 was released for production use. Whether there will be an ext5 remains questionable. Even Ts'o believes the future belongs to Btrfs [15]. A major advantage of the ext FS family, backward compatibility, ultimately limits its scalability and manageability. SUSE has already gone down this road: After the difficult departure of ReiserFS, the distribution switched to ext3, but the affiliation did not last long; now, Btrfs has taken over. Red Hat will also do away with ext4 as the default filesystem some time soon. XFS is the designated successor.
The (future) development of ext4 hinges on several components. The core team consists of 10 people, including Ts'o. They hold weekly conference calls and meet once a year. The contributions to the source code itself are derived from the work of far more people. A recent rough analysis counted more than 120 different developers. Communication takes place partly on the Linux kernel mailing list, as well as on ext4-specific lists [16]. Good old Internet relay chat (IRC) is also still used [17].
The xfstest
and in-house regression test suites are used to verify functionality, robustness, and stability. Bugs and their solutions are documented by Bugzilla tickets [18]. These and many other facts are described on the wiki page [19]. Developers and users alike will find important and useful information there.
The number of ext4 users is virtually impossible to determine. A large question mark hangs over the figures from Google's data centers, where the filesystem is used on their machines. By the way, the conversion from ext2 to ext4 was one of the reasons why the Internet giant took maintainer Ts'o on board. Android Honeycomb and later also rely on the youngest member of the ext FS family. Thanks to Linux smartphones, the number of ext4 instances is growing rapidly.
Infos
- Linux Kernel Archives: http://www.kernel.org/
- Linux 0.96c: https://www.kernel.org/pub/linux/kernel/Historic/old-versions/linux-0.96c.tar.gz
- "Anatomy of ext4" by M. Tim Jones: http://www.ibm.com/developerworks/linux/library/l-anatomy-ext4/
- "Design and Implementation of the Second Extended Filesystem" by Rémy Card, Theodore Ts'o, and Stephen Tweedie: http://e2fsprogs.sourceforge.net/ext2intro.html
- Tanenbaum, Andrew. Operating Systems: Design and Implementation. Prentice Hall, 1987
- Linux 0.96a: https://www.kernel.org/pub/linux/kernel/Historic/old-versions/linux-0.96a.tar.gz
- "The Linux ext2/3/4 Filesystem: Past, Present and Future" by Theodore Ts'o: http://www.linuxfoundation.jp/jp_uploads/seminar20060911/Ted_Tso.pdf
- Card, Rémy, Theodore Ts'o, and Stephen Tweedie. "Design and implementation of the second extended filesystem" in Proceedings of the First Dutch International Symposium on Linux, 1994
- "Journaling the Linux ext2fs Filesystem" by Stephen Tweedie: http://original.jamesthornton.com/hotlist/linux-filesystems/ext3-journal-design.pdf
- "fsync on large files" by Alan Curry: http://lkml.org/lkml/1999/2/12/160
- "Re: fsync on large files" by Stephen C. Tweedie: http://lkml.org/lkml/1999/2/17/36
- Kernel changelog 2.4.15: http://www.kernel.org/pub/linux/kernel/v2.4/ChangeLog-2.4.15
- "Proposal and plan for ext2/3 future development work" by Theodore Ts'o: http://lkml.org/lkml/2006/6/28/454
- "Conversion from ext3": http://btrfs.wiki.kernel.org/index.php/Conversion_from_Ext3
- "Panelists ponder the kernel at Linux Collaboration Summit" by Ryan Paul: http://arstechnica.com/information-technology/2009/04/linux-collaboration-summit-the-kernel-panel/
- Ext4 mailing lists: http://ext4.wiki.kernel.org/index.php/Mailinglists
- Ext4 IRC: http://ext4.wiki.kernel.org/index.php/IRC
- Ext4 bugs: http://bugzilla.kernel.org/buglist.cgi?product=File+System&component=ext4
- Ext4 wiki: http://ext4.wiki.kernel.org
« Previous 1 2 3
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome 48 Debuts New Audio Player
To date, the audio player found within the Gnome desktop has been meh at best, but with the upcoming release that all changes.
-
Plasma 6.3 Ready for Public Beta Testing
Plasma 6.3 will ship with KDE Gear 24.12.1 and KDE Frameworks 6.10, along with some new and exciting features.
-
Budgie 10.10 Scheduled for Q1 2025 with a Surprising Desktop Update
If Budgie is your desktop environment of choice, 2025 is going to be a great year for you.
-
Firefox 134 Offers Improvements for Linux Version
Fans of Linux and Firefox rejoice, as there's a new version available that includes some handy updates.
-
Serpent OS Arrives with a New Alpha Release
After months of silence, Ikey Doherty has released a new alpha for his Serpent OS.
-
HashiCorp Cofounder Unveils Ghostty, a Linux Terminal App
Ghostty is a new Linux terminal app that's fast, feature-rich, and offers a platform-native GUI while remaining cross-platform.
-
Fedora Asahi Remix 41 Available for Apple Silicon
If you have an Apple Silicon Mac and you're hoping to install Fedora, you're in luck because the latest release supports the M1 and M2 chips.
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.