News › linux

Bcachefs v1.38.7 to Introduce Rust Code in Kernel Module

By Zayden R., June 30, 2026

The upcoming Bcachefs release, v1.38.7, will begin incorporating Rust code into its kernel module, enhancing its existing use of Rust in user-space tools for this CoW file-system.

Bcachefs, the Copy-on-Write file system, is set to take a significant step forward with its next release, version 1.38.7, by incorporating Rust code into its kernel module. This marks an important development as Bcachefs has already been leveraging Rust in its user-space tools. The addition of Rust to the kernel module is expected to bring enhanced safety and performance, given Rust's reputation for memory safety and concurrency without compromising on speed.

The move to integrate Rust within the kernel module has been on the agenda for some time, and its realization in v1.38.7 could open new doors for Bcachefs in terms of stability and security. Developers have long praised Rust for its ability to prevent a wide range of bugs, particularly those related to memory management. By including Rust in the kernel module, Bcachefs aims to harness these benefits in a more critical part of the file system.

For sysadmins and engineers, this change is a welcome one. Rust's growing presence in the Linux kernel ecosystem has been a topic of interest, and Bcachefs is among the early adopters pushing this trend forward. As Linux continues to evolve, incorporating Rust into more components could become a common practice, promising safer and more reliable systems.

The Bcachefs team has not detailed the specific Rust components that will be included in the kernel module, but the transition is expected to be gradual. This careful integration process is essential to maintain the current functionality and performance while ensuring a smooth adoption of Rust.

Overall, this development is a solid improvement for Bcachefs, potentially setting a precedent for other file systems and kernel modules to follow suit in embracing Rust for its kernel-level operations.

Sources

Practice this on a real machine

The Linux Camp teaches these topics as hands-on labs on real virtual machines, verified as you type.