mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-12 08:49:33 +00:00
btrfs-progs: corrupt-block: Add support to corrupt extent for skinny metadata
For skinny metadata case, btrfs-corrupt-block can't corrupt a metadata extent due to the type check missing BTRFS_METADATA_ITEM_KEY. Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
bb3c2ea224
commit
ee0908ee81
@ -210,6 +210,7 @@ static int corrupt_extent(struct btrfs_trans_handle *trans,
|
||||
break;
|
||||
|
||||
if (key.type != BTRFS_EXTENT_ITEM_KEY &&
|
||||
key.type != BTRFS_METADATA_ITEM_KEY &&
|
||||
key.type != BTRFS_TREE_BLOCK_REF_KEY &&
|
||||
key.type != BTRFS_EXTENT_DATA_REF_KEY &&
|
||||
key.type != BTRFS_EXTENT_REF_V0_KEY &&
|
||||
|
Loading…
Reference in New Issue
Block a user