mbox series

[0/2] btrfs-corrupt-block btree data corruption

Message ID cover.1612468824.git.boris@bur.io (mailing list archive)
Headers show
Series btrfs-corrupt-block btree data corruption | expand

Message

Boris Burkov Feb. 4, 2021, 8:09 p.m. UTC
Add some more generic corruption to btrfs-corrupt-block which allows
corrupting the data in metadata items.

Motivated by testing fsverity which requires rather specific corruption
of the metadata.

The first patch adds corrupting arbitrary regions of item data with -I.
The second patch adds corrupting holes and prealloc in extent data.

Boris Burkov (2):
  btrfs-progs: corrupt generic item data with btrfs-corrupt-block
  btrfs-progs: expand corrupt_file_extent in btrfs-corrupt-block

 btrfs-corrupt-block.c | 93 +++++++++++++++++++++++++++++++++++++++----
 1 file changed, 85 insertions(+), 8 deletions(-)