Thomas Bertschinger 9a9af6e9e6 create common entry point for Rust commands
The bcachefs sub-commands that are implemented in Rust (completions,
list, and mount) had separate entrypoints and thus had some differences
in behavior.

This introduces a common entry point for the Rust sub-commands. This
reduces duplicate boilerplate code like parsing argv and setting up
logging, and will facilitate converting more sub-commands to Rust in
the future.

An immediate benefit is that this fixes an issue with `bcachefs list`
not reporting errors:

before:

$ bcachefs list /dev/typo
$ echo $?
0

after:

$ bcachefs list /dev/typo
ERROR - bcachefs_rust::cmd_list: Fatal error: "No such file or directory"
$ echo $?
1

Signed-off-by: Thomas Bertschinger <tahbertschinger@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2024-01-07 21:38:31 -05:00
2023-12-10 12:16:00 -05:00
2023-12-10 12:16:00 -05:00
2023-12-19 19:29:25 -05:00
2018-11-23 02:10:44 -05:00
2022-03-24 11:41:10 -06:00
2023-12-06 15:41:05 -05:00
2023-01-03 16:58:55 +13:00
2023-11-27 21:04:03 -05:00
2023-11-20 15:13:17 -05:00
2022-05-26 15:40:08 -04:00
2024-01-04 19:56:14 -05:00
2024-01-05 13:01:34 -05:00
2024-01-03 20:30:44 -05:00
2016-03-11 21:18:42 -09:00
2013-07-17 13:13:31 -07:00
2023-11-20 15:13:17 -05:00
2023-12-23 19:47:08 -05:00
2017-03-09 09:14:11 -09:00
2023-03-07 12:46:53 -05:00

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 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

Build and install

Refer to INSTALL.md

Bug reports and contributions

Description
Languages
C 95.6%
C++ 2%
Rust 1.4%
Roff 0.4%
Nix 0.2%
Other 0.4%