Bcachefs Brings Self-Healing Work & Better Reflink Repair For Linux 6.13

Written by Michael Larabel in Linux Storage on 16 November 2024 at 08:26 PM EST. 34 Comments
LINUX STORAGE
Bcachefs has now joined the party of various kernel components sending in preemptive pull requests ahead of the Linux 6.13 merge window that is expected to open following the expected Linux 6.12 release on Sunday.

In addition to Bcachefs working its way through remaining bugs, for Linux 6.13 there is also more feature work in tow for this next-gen, copy-on-write Linux file-system. Bcachefs for Linux 6.13 brings more feature work around self-healing support, enhancing reflink repair capabilities, and improving the re-balance data path option handling. Plus various fixes and clean-ups that didn't make the cut for warranting inclusion into Linux 6.12.

Bcachefs maintainer Kent Overstreet explained of the feature changes for Linux 6.13:
- Self healing work:
Allocator and reflink now run the exact same check/repair code that fsck does at runtime, where applicable.

The long term goal here is to remove inconsistent() errors (that cause us to go emergency read only) by lifting fsck code up to normal runtime paths; we should only go emergency read-only if we detect an inconsistency that was due to a runtime bug - or truly catastrophic damage (corrupted btree roots/interior nodes).

- Reflink repair no longer deletes reflink pointers: instead we flip an error bit and log the error, and they can still be deleted by file deletion. This means a temporary failure to find an indirect extent (perhaps repaired later by btree node scan) won't result in unnecessary data loss

- Improvements to rebalance data path option handling: we can now correctly apply changed filesystem-level io path options to pending rebalance work, and soon we'll be able to apply file-level io path option changes to indirect extents.

See the pull request for the full list of Bcachefs feature patches destined for Linux 6.13.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week