Go to file
Wessel Dankers 7b15324de1
Fix heap corruption in bcachefs format
In bch2_format(): recompute mi after each sb modification:
its location in memory may have changed due to reallocation.

This fixes an issue where labels were not assigned (because
they were written to an undefined part of the heap instead of
the superblock).

Signed-off-by: Wessel Dankers <wsl@fruit.je>
2022-01-13 00:08:52 +01:00
.github/workflows add nixos check 2021-10-18 16:31:21 -04:00
ccan Update for new superblock options; makefile improvements 2017-10-08 10:25:36 -08:00
debian Use scrypt from libsodium 2021-10-23 12:16:08 -04:00
doc Delete old bcachefs.5 from makefile 2021-12-20 15:24:22 -05:00
include Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation 2022-01-10 21:41:51 -05:00
initramfs Replaced mkdir -p with install -D in make install 2019-01-13 19:31:04 -08:00
libbcachefs Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation 2022-01-10 21:41:51 -05:00
linux Update bcachefs sources to 5fd0c70102 bcachefs: Fix __remove_dirent() 2021-11-03 21:28:23 -04:00
nix bcachefs-kernel: update hash 2021-10-20 22:11:58 -04:00
packaging Use scrypt from libsodium 2021-10-23 12:16:08 -04:00
raid snapraid 2018-11-23 02:10:44 -05:00
rust-src split mount into a library crate for rust reuse 2021-10-18 16:30:52 -04:00
tests Update valgrind suppressions file for urcu leak. 2021-10-12 20:22:45 -06:00
.bcachefs_revision Update bcachefs sources to bf340e68c7 bcachefs: Ignore cached data when calculating fragmentation 2022-01-10 21:41:51 -05:00
.gitignore Update bcachefs sources to ff3a76e1af bcachefs: Change need_whiteout_for_snapshot() to clone iterator 2021-12-19 19:37:29 -05:00
.travis.yml Use scrypt from libsodium 2021-10-23 12:16:08 -04:00
bcachefs.8 Update manpage to follow --label and --compression updates 2021-12-28 21:19:19 +02:00
bcachefs.c Rename group to label in show-super output 2021-12-13 17:14:44 -05:00
cmd_assemble.c Update bcachefs sources to 0906b1fb49 bcachefs: fixes for 32 bit/big endian machines 2018-05-17 02:36:19 -04:00
cmd_attr.c Fix some small memory leaks 2021-04-16 17:28:40 -04:00
cmd_data.c Add more specific subcommand usage messages 2021-11-01 08:12:35 -06:00
cmd_debug.c Improve the list_journal subcommand 2022-01-01 21:14:28 -05:00
cmd_device.c fix labels not applying 2022-01-01 21:14:28 -05:00
cmd_format.c Unit handling cleanups 2022-01-01 21:14:22 -05:00
cmd_fs.c Add more specific subcommand usage messages 2021-11-01 08:12:35 -06:00
cmd_fsck.c Ensure we always print a message if fsck doesnt't return 0 2020-12-03 19:15:37 -05:00
cmd_fusemount.c Update bcachefs sources to 3f3f969859 bcachefs: Fix some compiler warnings 2021-09-09 19:10:07 -04:00
cmd_key.c Update bcachefs sources to edf5f38218 bcachefs: Refactor superblock code 2018-04-10 19:23:58 -04:00
cmd_migrate.c Update bcachefs sources to aa439f3b94 bcachefs: btree_gc no longer uses main in-memory bucket array 2022-01-01 21:22:41 -05:00
cmd_run.c Update bcachefs sources to 0906b1fb49 bcachefs: fixes for 32 bit/big endian machines 2018-05-17 02:36:19 -04:00
cmd_subvolume.c Add more specific subcommand usage messages 2021-11-01 08:12:35 -06:00
cmd_version.c Added 'version' command to print when the bcachefs tool was built 2018-05-26 14:32:30 -07:00
cmds.h Add more specific subcommand usage messages 2021-11-01 08:12:35 -06:00
config.h Redo lots of stuff 2016-03-11 21:18:42 -09:00
COPYING bcache-tools are GPL 2013-07-17 13:13:31 -07:00
crypto.c Use scrypt from libsodium 2021-10-23 12:16:08 -04:00
crypto.h add -c to cmd_unlock, to check if a device needs to be unlocked 2018-02-11 14:25:33 -05:00
default.nix Use scrypt from libsodium 2021-10-23 12:16:08 -04:00
flake.lock add nix flake with checks, overlay, and default package 2021-10-18 11:30:30 -04:00
flake.nix flake.nix: add boot stage1 module test, which takes a long time to build 2021-10-20 14:47:28 -04:00
fsck.bcachefs fsck.bcachefs: convert to POSIX sh 2018-02-09 16:52:44 +01:00
INSTALL Use scrypt from libsodium 2021-10-23 12:16:08 -04:00
libbcachefs.c Fix heap corruption in bcachefs format 2022-01-13 00:08:52 +01:00
libbcachefs.h Unit handling cleanups 2022-01-01 21:14:22 -05:00
Makefile Makefile: We need to exclude hidden folders 2022-01-12 17:31:04 +13:00
Makefile.compiler Update bcachefs sources to b964c6cba8 bcachefs: Change lockrestart_do() to always call bch2_trans_begin() 2021-07-28 17:26:50 -04:00
mkfs.bcachefs mkfs.bcachefs: convert to POSIX sh 2018-02-09 16:54:03 +01:00
mount.bcachefs.sh Add a shell script version of mount.bcachefs 2020-08-24 23:17:17 -04:00
qcow2.c Unit handling cleanups 2022-01-01 21:14:22 -05:00
qcow2.h cmd_migrate 2017-03-09 09:14:11 -09:00
README Rename from bcache-tools to bcachefs-tools 2017-03-19 17:31:47 -08:00
smoke_test Clean up smoketest and pytests. 2021-10-11 20:24:12 -06:00
tools-util.c Unit handling cleanups 2022-01-01 21:14:22 -05:00
tools-util.h Unit handling cleanups 2022-01-01 21:14:22 -05:00

Userspace tools for bcachefs

This builds the bcachefs tool, which has a number of subcommands for formatting
and managing bcachefs filesystems:

bcachefs format
bcachefs unlock
bcachefs assemble
bcachefs incremental
etc.

Run bcachefs --help for full list of commands.