New Linux Kernel Patches Begin Plumbing Rust Support Into Bcachefs Driver
![LINUX STORAGE](/assets/categories/linuxstorage.webp)
A request for comments (RFC) patch series was sent out that allows for making use of Rust code within the Bcachefs kernel driver. The user-space utilities in bcachefs-tools already have been making use of the Rust programming language while this new patch series is about the Bcachefs kernel code.
For now at least the Rust code within the Bcachefs driver would be hidden behind a "CONFIG_BCACHEFS_RUST" Kconfig switch and be considered optional. The patch series by Thomas Bertschinger notes that Bcachefs lead developer Kent Overstreet is hoping to merge the Rust+Bcachefs code for the upcoming Linux 6.9 merge window.
This patch series is just about making use of Rust code internally within the Bcachefs driver and doesn't expose any new public Rust APIs or the like. More details on this patch series for introducing Rust support for Bcachefs can be found on the Rust-for-Linux mailing list.
In response to the posting, Rust for Linux developer Miguel Ojeda has questioned the overall plans for Bcachefs. In particular, if the file-system intends to implement all functionality in both C and Rust versions or how the use of Rust will be handled if it's to remain optional for the file-system driver. If Bcachefs decides to make Rust mandatory in the future, it will then limit the supported architectures and platforms where Rust is supported. Miguel also says it's "worrying" around their mixing of C and Rust as well as the tight timeline for Linux 6.9, so we'll see how quickly this moves ahead...
91 Comments