diff options
author | Chris Mason <chris.mason@oracle.com> | 2012-02-21 21:20:54 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2012-02-22 10:59:55 -0500 |
commit | e22827e9bb9634540d32bf29b23b26989e384902 (patch) | |
tree | bb51c2126f2779bd9209a6397b2d78ba19b6e2f9 /btrfs-corrupt-block.c | |
parent | 8f01235dd8cf65c064f1b979d24a989ca296ea33 (diff) |
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 <chris.mason@oracle.com>
Diffstat (limited to 'btrfs-corrupt-block.c')
-rw-r--r-- | btrfs-corrupt-block.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/btrfs-corrupt-block.c b/btrfs-corrupt-block.c index 980a006d..7051e99c 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); |