ArticleslgStudy

computer science

Bcachefs

Bcachefs is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Bcachefs rather than just read about it. In short: Bcachefs is a copy-on-write (COW) file system for Linux-based operating systems. It is intended to compete with the modern features of ZFS or Btrfs.

Key takeaways

  • Bcachefs belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Bcachefs to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Bcachefs from memory before moving on to harder problems.

Reference excerpt

Bcachefs is a copy-on-write (COW) file system for Linux-based operating systems. It is intended to compete with the modern features of ZFS or Btrfs. It was first announced it in 2015, and added to the Linux kernel beginning with version 6.7 in 2024. In June 2025, Linus Torvalds announced bcachefs would be ejected from the kernel as a result of repeated violations of kernel development guidelines. In August 2025, bcachefs status was changed from 'Supported' to 'Externally maintained'. As of late September 2025, Linus Torvalds has removed all Bcachefs code from the Linux Kernel, beginning with version 6.18. It is now available as an external module.

Features Bcachefs is a copy-on-write (COW) file system for Linux-based operating systems. Features include caching, full file-system encryption using the ChaCha20 and Poly1305 algorithms, native compression via LZ4, gzip and Zstandard, snapshots, CRC-32C and 64-bit checksumming. It can span block devices, including in RAID configurations. Earlier versions of Bcachefs provided all the functionality of Bcache, a block-layer cache system for Linux, with which Bcachefs shares about 80% of its code. As of December 2021, the block-layer cache functionality has been removed. On a data structure level, bcachefs uses B-trees like many other modern file systems, but with an unusually large node size defaulting to 256 KiB. These nodes are internally log-structured, forming a hybrid data structure, reducing the need for rewriting nodes on update. Snapshots are not implemented by cloning a COW tree, but by adding a version number to filesystem objects. The COW feature and the bucket allocator enables a RAID implementation which is claimed to not suffer from the write hole nor IO fragmentation. On the other hand, the bucket allocator necessitates the use of a copying garbage collector for dealing with mostly-empty buckets.

Stability Bcachefs describes itself as "working and stable, with a small community of users". When discussing Linux 6.9-rc3 on April 7, 2024, Linus Torvalds touched on the stability of bcachefs, saying "if you thought bcachefs was stable already, I have a bridge to sell you", and in August 2024 that "nobody sane uses bcachefs and expects it to be stable". In August 2024, the Debian maintainer of bcachefs-tools, a package providing "userspace tools and docs", orphaned the package, questioning its long term supportability. The maintainer further commented in a blog post that: "I'd advise that if you consider using bcachefs for any kind of production use in the near future, you first consider how supportable it is long-term, and whether there's really anyone at all that is succeeding in providing stable support for it."

History Primary development has been by Kent Overstreet, the developer of Bcache, which he describes as a "prototype" for the ideas that became Bcachefs. Overstreet intends Bcachefs to replace Bcache. Overstreet has stated that development of Bcachefs began as the Bcache developers realized that its codebase had "been evolving ... into a full blown, general-purpose POSIX filesystem", and that "there was a really clean and elegant design" within it, if they took it in that direction. Some time after Bcache was merged into the mainline Linux kernel in 2013, Overstreet left his job at Google to work full-time on Bcachefs. After a few years of unfunded development, Overstreet announced Bcachefs in 2015, at which point he called the code "more or less feature complete", and called for testers and contributors. He intended it to be an advanced file system with modern features like those of ZFS or Btrfs, with the speed and performance of file systems such as ext4 and XFS. As of 2017, Overstreet was receiving financial support for the development of Bcachefs via Patreon. As of mid-2018, the on-disk format had settled. Patches had been submitted for review to have Bcachefs included in the mainline Linux kernel. By mid-2019, the desired features of Bcachefs were completed and the associated patches to LKML were submitted for peer review. In October 2023, Bcachefs was merged into the Linux 6.7 kernel, which was released in January 2024. In November 2024, Kent Overstreet was restricted by Linux's Code of Conduct Committee from sending in contributions during the Linux 6.13 kernel development cycle due to "written abuse of another community member" and taking "insufficient action to restore the community's faith in having otherwise productive technical discussions without the fear of personal attacks". Patches were later accepted without issue during the Linux 6.14 kernel development. In June 2025, Linus Torvalds announced bcachefs would be removed from the Linux kernel; Linus explained as follows:

[...] I think we'll be parting ways in the 6.17 merge window. You made it very clear that I can't even question any bug-fixes and I should just pull anything and everything. Honestly, at that point, I don't really feel comfortable being involved at all, and the only thing we both seemed to really fundamentally agree on in that discussion was "we're done".

In August 2025, after not merging any bcachefs updates for Linux 6.17, Torvalds marked bcachefs as "Externally maintained" in the Linux kernel. In September 2025, Overstreet announced that bcachefs would move to being shipped as a Dynamic Kernel Module Support (DKMS) module.

References

Works cited

External links Official website

Worked examples

Example 1 — a first encounter with Bcachefs

Start with the simplest possible case. Write down what Bcachefs claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Bcachefs before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Bcachefs ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Bcachefs

In research
Bcachefs appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Bcachefs in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Bcachefs is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2015 software, Compression file systems, Disk file systems, so understanding it makes those chapters shorter.
In everyday life
Look for Bcachefs outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Bcachefs” →

How to study Bcachefs in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Bcachefs means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Bcachefs out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Bcachefs in simple terms?

Bcachefs is a copy-on-write (COW) file system for Linux-based operating systems. It is intended to compete with the modern features of ZFS or Btrfs.

Why does Bcachefs matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Bcachefs?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Bcachefs.

Tags

  • 2015 software
  • Compression file systems
  • Disk file systems
  • File systems supported by the Linux kernel
  • Linux file system-related software

Keep exploring