From a3958e5a851f8d0efeafe5946b8a32ea0fd45436 Mon Sep 17 00:00:00 2001 From: Josef Bacik Date: Wed, 4 Jan 2012 10:37:43 -0500 Subject: [PATCH 39/43] Btrfs-progs: remove the physical disk size check from find-root Our logical offsets may be beyond what we think the size of the disk is, so our check is bogus, remove it. Thanks, Signed-off-by: Josef Bacik --- find-root.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/find-root.c b/find-root.c index 484f85f..43cb778 100644 --- a/find-root.c +++ b/find-root.c @@ -260,13 +260,6 @@ static int find_root(struct btrfs_root *root) int mirror_num; int num_copies; - if (offset > - btrfs_super_total_bytes(&root->fs_info->super_copy)) { - printf("Went past the fs size, exiting, offset=%Lu, " - "total_bytes=%Lu\n", offset, - btrfs_super_total_bytes(&root->fs_info->super_copy)); - break; - } if (offset >= (metadata_offset + metadata_size)) { if (verbose) printf("Moving to the next metadata chunk\n"); -- 1.7.6.233.gd79bc