Watch
1
0
Fork
You've already forked bcachefs-tools
0
mirror of https://evilpiepirate.org/git/bcachefs-tools.git synced 2026-11-23 22:04:40 -05:00
No description
  • Rust 85.6%
  • C 12.6%
  • Shell 0.9%
  • Nix 0.3%
  • Roff 0.3%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Kent Overstreet a794f77b93 vfs: a nocow flush is a DevBio, accounted
NocowFlush was a DevBio without the accounting: an io ref, a bio, and an
end that did nothing. It's a DevBio now, and a DevBio gathered alone ends
by its end(): the flush's latency and result accounted against the device,
as every DevBio's IO is. C's nocow flush accounted nothing.

unsafe: none added or removed.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
2026-11-23 09:10:36 -05:00
.cargo util/rcu: FreeAnytime, an auto trait for what RCU readers may hold 2026-10-30 14:00:11 -05:00
.github ci: update-flake-lock monthly and on demand, not on every flake.nix push 2026-10-29 17:16:28 -05:00
arch/etc
c_src data_structures/ida: the ID allocator in Rust, for both builds; ida.c goes 2026-11-14 12:28:10 -05:00
debian build: libsodium goes 2026-11-17 00:47:51 -05:00
dkms os/sched: THREAD_INFO_IN_TASK is required; need_resched()'s shim goes 2026-11-16 16:40:57 -05:00
doc Makefile: the vendored kernel sources' refresh goes 2026-11-14 02:11:01 -05:00
Documentation
dracut/90bcachefs
fs vfs: a nocow flush is a DevBio, accounted 2026-11-23 09:10:36 -05:00
include/linux os: lz4, zlib and zstd wrapped, in the kernel API's shape 2026-11-17 01:29:03 -05:00
initramfs
linux os: lz4, zlib and zstd wrapped, in the kernel API's shape 2026-11-17 01:29:03 -05:00
os os/bio: a bio's device and sector are its submit's 2026-11-23 09:10:36 -05:00
package-ci os/linux_kernel: the kernel build's bindgen is the port's 2026-11-14 02:52:26 -05:00
raid
scripts scripts/unused-c-exports.sh: c_enum x-macros 2026-11-08 05:57:31 -05:00
signing
src os/bio: a bio's device and sector are its submit's 2026-11-23 09:10:36 -05:00
udev
verus-proofs data_structures: fs/util's data structures get a directory of their own 2026-11-03 05:50:56 -05:00
.editorconfig
.gitattributes gitattributes: Rust is indented with spaces 2026-11-07 23:41:27 -05:00
.gitignore
AGENTS.md AGENTS.md: mem::forget is banned 2026-11-22 02:14:25 -05:00
bcachefs
bcachefs-kmp.spec-preambule
bcachefs-tools.spec build: libsodium goes 2026-11-17 00:47:51 -05:00
bcachefs-wait-devices@.service.in
bcachefs.8
build-link.rs build: libsodium goes 2026-11-17 00:47:51 -05:00
build.rs
Cargo.lock Cargo.lock: ctutils 0.4.2, for the 1.85 MSRV 2026-11-17 03:02:08 -05:00
Cargo.toml tools: the kernel keyring by linux-keyutils, and bch_bindgen goes 2026-11-15 04:56:56 -05:00
Changelog.mdwn
clang_target.rs
COPYING
crane-build.nix build: libsodium goes 2026-11-17 00:47:51 -05:00
default.nix
flake.lock flake.lock: update 2026-10-29 17:17:00 -05:00
flake.nix nix: checks.msrv doesn't deny warnings 2026-11-01 16:55:08 -05:00
INSTALL.md build: libsodium goes 2026-11-17 00:47:51 -05:00
make-release-tarball.sh
Makefile os/bio: the bio code is os/'s, not util/'s 2026-11-23 06:43:22 -05:00
Makefile.compiler
module-build.nix module-build.nix: the Makefile has no vmlinux to point at 2026-11-13 03:11:51 -05:00
mount.bcachefs.sh
nixos-test.nix
overlay.nix
README.md
rust-analyzer.toml rust-analyzer.toml: analyze fs/ with the kernel's cfgs 2026-11-11 19:55:11 -05:00
rustfmt.toml

bcachefs-tools

Userspace tools and docs for bcachefs

Bcachefs is an advanced new filesystem for Linux, with an emphasis on reliability and robustness and the complete set of features one would expect from a modern filesystem.

This is the official development repository for bcachefs — the userspace tools, the documentation, and the filesystem source itself. bcachefs is maintained out of mainline and ships as a DKMS kernel module built from this tree. To build it into a kernel source tree instead (CONFIG_BCACHEFS_FS), run scripts/install-to-kernel.sh, which copies fs/ into <kernel>/fs/bcachefs/ and wires it into the kernel build.

This repo primarily consists of the following:

  • bcachefs tool, the reason this repo exists.
  • {mkfs,mount,fsck}.bcachefs utils, which is just wrappers calling the corresponding subcommands in the main tool
  • docs in the form of man-pages and a user manual

Please refer to the main site for getting started An in-depth user manual is (also) found on the official website

Version semantics

The tools relies on an expected disk format structure which is reflected by your current kernel version. Disk format can be upgraded or downgraded automatically by the kernel, if needed.

  • Any patch-level change means no disk format change
  • Any minor-level change means a potential disk format change which is not breaking
  • Any major-level change means breaking changes

Build and install

Refer to INSTALL.md

Bug reports and contributions

  • GitHub issues for bug reports and focused feature requests
  • GitHub Discussions for support questions and general usage discussion
  • The official mailing list, linux-bcachefs@vger.kernel.org
  • IRC: #bcache on OFTC (irc.oftc.net). Note that IRC messages can be easily missed.