On Sun, Jul 14, 2024 at 02:02:21PM GMT, Thomas Bertschinger wrote: > This introduces a new command, "debug", to the bcachefs tool.
Background: this is what will let us do comprehensive error injection on our on disk images and rigorously test our repair paths. Thanks Thomas! > > Changes in v2: > - minor fixups > - added "field+=value" to increment a field's value, in addition to > "field=value" > > Thomas Bertschinger (5): > include debuginfo in bcachefs binary by default > update minimum Rust version to 1.74.0 > introduce "list_bkeys" command > introduce "debug" command and "dump" subcommand > introduce new "debug update" command > > Cargo.lock | 374 ++++++++++++++++++++++--------- > Cargo.toml | 9 +- > c_src/bcachefs.c | 4 +- > c_src/cmd_debug.c | 145 ++++++++++++ > c_src/cmds.h | 18 ++ > src/bcachefs.rs | 5 +- > src/commands/debug/bkey_types.rs | 340 ++++++++++++++++++++++++++++ > src/commands/debug/mod.rs | 173 ++++++++++++++ > src/commands/debug/parser.rs | 105 +++++++++ > src/commands/mod.rs | 3 + > 10 files changed, 1061 insertions(+), 115 deletions(-) > create mode 100644 c_src/cmd_debug.c > create mode 100644 src/commands/debug/bkey_types.rs > create mode 100644 src/commands/debug/mod.rs > create mode 100644 src/commands/debug/parser.rs > > -- > 2.45.2 >
