Skip to content

btrfs-progs: fix the overly strict chunk type check on dump-tree

Qu Wenruo linux-btrfs 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: dump-tree: fix the chunk type check for system chunkscmds/inspect-dump-tree.c+3 -20 replies
2/2btrfs-progs: misc-tests: add a regression test case for dump treetests/misc-tests/072-dump-tree-chunk-bytenr/test.sh+25 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] btrfs-progs: fix the overly strict chunk type check on dump-tree

Commit 408e45feb325 ("btrfs-progs: dump-tree: add extra chunk type checks") introduced a chunk type check before dumping the tree.

However it's too strict as I'm a total idiot, and forgot to we still need to dump chunk tree blocks.

Fix it and add a regression test.

Qu Wenruo (2):
btrfs-progs: dump-tree: fix the chunk type check for system chunks
btrfs-progs: misc-tests: add a regression test case for dump tree

 cmds/inspect-dump-tree.c                      |  5 ++--
 .../072-dump-tree-chunk-bytenr/test.sh        | 25 +++++++++++++++++++
 2 files changed, 28 insertions(+), 2 deletions(-)
 create mode 100755 tests/misc-tests/072-dump-tree-chunk-bytenr/test.sh

--
2.54.0