A next-gen CoW filesystem enters the mainline
Super CoW

© Photo by Anand Thakur on Unsplash
Bcachefs is a next-generation Linux filesystem that merges into the kernel, offering a feature-complete, high-performance copy-on-write design for scalable, reliable storage.
In the world of Linux filesystems, finding the perfect balance between performance and advanced features has long been a challenge. Traditional workhorses such as ext4 and XFS deliver speed and stability but lack modern capabilities, whereas feature-rich alternatives such as Btrfs and ZFS come with complexity and caveats. Bcachefs [1] – merged into the Linux kernel 6.7 – promises the best of both worlds, aiming to marry the reliability and powerful features of ZFS/Btrfs with the efficiency of ext4/XFS. Bcachefs is a copy-on-write (CoW) filesystem designed for robustness without sacrificing speed. The bcachefs filesystem offers native support for checksumming, compression, encryption, snapshots, tiered storage, and multi-device configurations, all the while delivering consistent low-latency performance and robust data integrity.
Bcachefs developer Kent Overstreet has had some high-profile battles with Linus Torvalds, and the status of future kernel support keeps changing depending on who you talk to and when you talk to them. Linus has stated that the kernel will be "parting ways" with bcachefs in version 6.17 [2]. As of this writing, though, bcachefs is included in the current Linux kernel, and support could continue if the antagonists resolve their differences. Whether or not bcachefs continues as an active part of the kernel, it is still worth a look as an example of how the world of the Linux filesystem keeps evolving.
Architecture and Features
Bcachefs was built from the ground up to be a next-generation CoW filesystem that won't eat your data. Its core design inherits concepts from the earlier bcache block-layer cache, with which it originally shared much code, evolving that prototype into a full POSIX-compatible filesystem. Bcachefs uses CoW semantics similar to Btrfs and ZFS – data and metadata are never overwritten in place, enabling atomic updates and consistent snapshots. All modifications are written to new locations, which not only facilitates reliability but also allows features such as snapshotting and reflinking (efficiently copying or cloning files) by design.
[...]
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
-
There's a New Linux AI Assistant in Town
Newelle is a Linux AI assistant that can work with different LLMs and includes document parsing and profiles.
-
Linux Kernel 6.16 Released with Minor Fixes
The latest Linux kernel doesn't really include any big-ticket features, just a lot of lines of code.
-
EU Sovereign Tech Fund Gains Traction
OpenForum Europe recently released a report regarding a sovereign tech fund with backing from several significant entities.
-
FreeBSD Promises a Full Desktop Installer
FreeBSD has lacked an option to include a full desktop environment during installation.
-
Linux Hits an Important Milestone
If you pay attention to the news in the Linux-sphere, you've probably heard that the open source operating system recently crashed through a ceiling no one thought possible.
-
Plasma Bigscreen Returns
A developer discovered that the Plasma Bigscreen feature had been sitting untouched, so he decided to do something about it.
-
CachyOS Now Lets Users Choose Their Shell
Imagine getting the opportunity to select which shell you want during the installation of your favorite Linux distribution. That's now a thing.
-
Wayland 1.24 Released with Fixes and New Features
Wayland continues to move forward, while X11 slowly vanishes into the shadows, and the latest release includes plenty of improvements.
-
Bugs Found in sudo
Two critical flaws allow users to gain access to root privileges.
-
Fedora Continues 32-Bit Support
In a move that should come as a relief to some portions of the Linux community, Fedora will continue supporting 32-bit architecture.