path: root/cmds-check.c
diff options
authorJosef Bacik <>2015-01-15 17:11:41 -0500
committerJosef Bacik <>2015-02-09 14:53:14 -0500
commit65ac3b27586e6733191f941480f9348963dab9a9 (patch)
tree3bd380256a048869394200de436b542a07a2d7af /cmds-check.c
parent1b7126f93722064eff6ee0792694a598a37bef30 (diff)
Btrfs-progs: don't try to repair reloc roots
We have logic to fix the root locations for roots in response to a corruption bug we had earlier. However this work doesn't apply to reloc roots and can screw things up worse, so make sure we skip any reloc roots that we find. Thanks, Signed-off-by: Josef Bacik <>
Diffstat (limited to 'cmds-check.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds-check.c b/cmds-check.c
index e74fa0f6..2b08c648 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -8886,6 +8886,8 @@ again:
if (found_key.type != BTRFS_ROOT_ITEM_KEY)
goto next;
+ if (found_key.objectid == BTRFS_TREE_RELOC_OBJECTID)
+ goto next;
ret = maybe_repair_root_item(info, path, &found_key,
trans ? 0 : 1);