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>
master
Qu Wenruo 2016-05-26 10:36:02 +08:00 committed by David Sterba
parent bb3c2ea224
commit ee0908ee81
1 changed files with 1 additions and 0 deletions

View File

@ -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 &&