Skip to content

new debug command

Thomas Bertschinger linux-bcachefs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 3 repliesIn review
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- minor fixups
- added "field+=value" to increment a field's value, in addition to "field=value"

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5include debuginfo in bcachefs binary by defaultCargo.toml+3 -01 reply
2/5update minimum Rust version to 1.74.0Cargo.lock Cargo.toml+123 -1120 replies
3/5introduce "list_bkeys" commandCargo.lock Cargo.toml src/bcachefs.rs +3 more+478 -20 replies
4/5introduce "debug" command and "dump" subcommandc_src/bcachefs.c c_src/cmd_debug.c c_src/cmds.h +4 more+210 -11 reply
5/5introduce new "debug update" commandc_src/cmd_debug.c c_src/cmds.h src/commands/debug/bkey_types.rs +2 more+255 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH TOOLS v2 0/5] new debug command

This introduces a new command, "debug", to the bcachefs tool.

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