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
-
Canonical Releases Ubuntu 24.04
After a brief pause because of the XZ vulnerability, Ubuntu 24.04 is now available for install.
-
Linux Servers Targeted by Akira Ransomware
A group of bad actors who have already extorted $42 million have their sights set on the Linux platform.
-
TUXEDO Computers Unveils Linux Laptop Featuring AMD Ryzen CPU
This latest release is the first laptop to include the new CPU from Ryzen and Linux preinstalled.
-
XZ Gets the All-Clear
The back door xz vulnerability has been officially reverted for Fedora 40 and versions 38 and 39 were never affected.
-
Canonical Collaborates with Qualcomm on New Venture
This new joint effort is geared toward bringing Ubuntu and Ubuntu Core to Qualcomm-powered devices.
-
Kodi 21.0 Open-Source Entertainment Hub Released
After a year of development, the award-winning Kodi cross-platform, media center software is now available with many new additions and improvements.
-
Linux Usage Increases in Two Key Areas
If market share is your thing, you'll be happy to know that Linux is on the rise in two areas that, if they keep climbing, could have serious meaning for Linux's future.
-
Vulnerability Discovered in xz Libraries
An urgent alert for Fedora 40 has been posted and users should pay attention.
-
Canonical Bumps LTS Support to 12 years
If you're worried that your Ubuntu LTS release won't be supported long enough to last, Canonical has a surprise for you in the form of 12 years of security coverage.
-
Fedora 40 Beta Released Soon
With the official release of Fedora 40 coming in April, it's almost time to download the beta and see what's new.