Skip to content

btrfs-progs: make corrupt-block metadata geneartion corruption work again

Qu Wenruo linux-btrfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2btrfs-progs: unexport csum_tree_block()common/utils.h kernel-shared/disk-io.c+2 -40 replies
2/2btrfs-progs: corrupt-block: re-generate the checksum for generation corruptionbtrfs-corrupt-block.c+2 -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: make corrupt-block metadata geneartion corruption work again

This is preparing for the incoming metadata validation refactor in kernel, thus I need a way to corrupt transid reliably with correct checksum.

The first patch is to unexport csum_tree_block() which also has a stale definition .

The second patch is to fix the csum for metadata block with corrupted generation.

Now btrfs-corrupt-block can properly corrupt the generation of a tree block.

(But unfortunately it corrupts all copies, which is still not exactly what I need, but is already good enough)

Qu Wenruo (2):
btrfs-progs: unexport csum_tree_block()
btrfs-progs: corrupt-block: re-generate the checksum for generation
corruption

 btrfs-corrupt-block.c   | 2 ++
 common/utils.h          | 2 --
 kernel-shared/disk-io.c | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.37.3