VOOZH about

URL: https://www.phoronix.com/news/Bcachefs-More-For-Linux-6.16

⇱ Bcachefs Lands More Improvements For Linux 6.16 After Data Loss Bug Hit v6.15 - Phoronix


👁 Phoronix

Bcachefs Lands More Improvements For Linux 6.16 After Data Loss Bug Hit v6.15

Written by Michael Larabel in Linux Storage on 5 June 2025 at 05:40 AM EDT. 46 Comments
Last week many Bcachefs performance optimizations, recovery work, and enhanced error messages were merged at the start of the Linux 6.16 merge window. Now ahead of the Linux 6.16-rc1 release coming on Sunday to cap off the merge window, a second round of Bcachefs enhancements and fixes were merged.

On Wednesday evening the Bcachefs lead developer Kent Overstreet sent out a second round of Bcachefs changes. The code has since been merged with this mix of fixes and other feature changes.

This second batch of Bcachefs changes for Linux 6.16 include more stack usage improvements, new introspection capabilities, various repair enhancements, and addressing a serious bug that cropped up in Linux 6.15 and could result in data loss.

As for that Linux 6.15 bug, it's resulted in data loss. Overstreet commented in the pull request:
"This took longer to debug than it should have, and we lost several filesystems unnecessarily, becuase users have been ignoring the release notes and blindly running 'fsck -y'. Debugging required reconstructing what happened through analyzing the journal, when ideally someone would have noticed 'hey, fsck is asking me if I want to repair this: it usually doesn't, maybe I should run this in dry run mode and check what's going on?'.

As a reminder, fsck errors are being marked as autofix once we've verified, in real world usage, that they're working correctly; blindly running 'fsck -y' on an experimental filesystem is playing with fire.

Up to this incident we've had an excellent track record of not losing data, so let's try to learn from this one.

This is a community effort, I wouldn't be able to get this done without the help of all the people QAing and providing excellent bug reports and feedback based on real world usage. But please don't ignore advice and expect me to pick up the pieces.

If an error isn't marked as autofix, and it /is/ happening in the wild, that's also something I need to know about so we can check it out and add it to the autofix list if repair looks good. I haven't been getting those reports, and I should be; since we don't have any sort of telemetry yet I am absolutely dependent on user reports.

Now I'll be spending the weekend working on new repair code to see if I can get a filesystem back for a user who didn't have backups."

See this pull request for the latest merged Bcachefs code.

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.