For skinny metadata case, btrfs-corrupt-block can't corrupt a metadata extent due to the type judgment doesn't include BTRFS_METADATA_ITEM_KEY. Fix it. Signed-off-by: Qu Wenruo <quwenruo@xxxxxxxxxxxxxx> --- btrfs-corrupt-block.c | 1 + 1 file changed, 1 insertion(+) diff --git a/btrfs-corrupt-block.c b/btrfs-corrupt-block.c index 2cc9704..020afab 100644 --- a/btrfs-corrupt-block.c +++ b/btrfs-corrupt-block.c @@ -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 && -- 2.8.2 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
