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
Direct Download
Read full article as PDF:
Price $2.95
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Find SysAdmin Jobs
News
-
Escuelas Linux 8.0 is Now Available
Just in time for its 25th anniversary, the developers of Escuelas Linux have released the latest version.
-
LibreOffice 7.5 has Arrived Loaded with New Features and Improvements
The favorite office suite of the Linux community has a new release that includes some visual refreshing and new features across all modules.
-
The Next Major Release of Elementary OS Has Arrived
It's been over a year since the developers of elementary OS released version 6.1 (Jólnir) but they've finally made their latest release (Horus) available with a renewed focus on the user.
-
KDE Plasma 5.27 Beta Is Ready for Testing
The latest beta iteration of the KDE Plasma desktop is now available and includes some important additions and fixes.
-
Netrunner OS 23 Is Now Available
The latest version of this Linux distribution is now based on Debian Bullseye and is ready for installation and finally hits the KDE 5.20 branch of the desktop.
-
New Linux Distribution Built for Gamers
With a Gnome desktop that offers different layouts and a custom kernel, PikaOS is a great option for gamers of all types.
-
System76 Beefs Up Popular Pangolin Laptop
The darling of open-source-powered laptops and desktops will soon drop a new AMD Ryzen 7-powered version of their popular Pangolin laptop.
-
Nobara Project Is a Modified Version of Fedora with User-Friendly Fixes
If you're looking for a version of Fedora that includes third-party and proprietary packages, look no further than the Nobara Project.
-
Gnome 44 Now Has a Release Date
Gnome 44 will be officially released on March 22, 2023.
-
Nitrux 2.6 Available with Kernel 6.1 and a Major Change
The developers of Nitrux have officially released version 2.6 of their Linux distribution with plenty of new features to excite users.