public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] btrfs-progs: make corrupt-block metadata geneartion corruption work again
@ 2022-09-13  7:19 Qu Wenruo
  2022-09-13  7:19 ` [PATCH 1/2] btrfs-progs: unexport csum_tree_block() Qu Wenruo
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Qu Wenruo @ 2022-09-13  7:19 UTC (permalink / raw)
  To: linux-btrfs

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

-- 
2.37.3


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-09-15 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-13  7:19 [PATCH 0/2] btrfs-progs: make corrupt-block metadata geneartion corruption work again Qu Wenruo
2022-09-13  7:19 ` [PATCH 1/2] btrfs-progs: unexport csum_tree_block() Qu Wenruo
2022-09-13  7:19 ` [PATCH 2/2] btrfs-progs: corrupt-block: re-generate the checksum for generation corruption Qu Wenruo
2022-09-15 14:34 ` [PATCH 0/2] btrfs-progs: make corrupt-block metadata geneartion corruption work again David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox