btrfs-progs: make corrupt-block metadata geneartion corruption work again
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | btrfs-progs: unexport csum_tree_block()common/ kernel-shared/ | +2 | 0 replies | |
| 2/2 | btrfs-progs: corrupt-block: re-generate the checksum for generation corruptionbtrfs-corrupt-block.c | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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