From e22827e9bb9634540d32bf29b23b26989e384902 Mon Sep 17 00:00:00 2001 From: Chris Mason Date: Tue, 21 Feb 2012 21:20:54 -0500 Subject: btrfsck: add early code to handle corrupted block groups This is mostly disabled, but it is step one in handling corrupted block groups in the extent allocation tree. Signed-off-by: Chris Mason --- btrfs-corrupt-block.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'btrfs-corrupt-block.c') diff --git a/btrfs-corrupt-block.c b/btrfs-corrupt-block.c index 980a006..7051e99 100644 --- a/btrfs-corrupt-block.c +++ b/btrfs-corrupt-block.c @@ -242,11 +242,6 @@ static void btrfs_corrupt_extent_tree(struct btrfs_trans_handle *trans, if (!eb) return; - if ((rand() % 10) == 0) { - corrupt_keys(trans, root, eb); - return; - } - nr = btrfs_header_nritems(eb); if (btrfs_is_leaf(eb)) { btrfs_corrupt_extent_leaf(trans, root, eb); -- cgit v1.2.1