From 9a7fe4bdc9725bbf84af0c174c9102e8ac05983c Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 18 Aug 2009 23:14:03 -0400 Subject: [PATCH] e2fsck: Only ask to relocate a block group's inode table once If multiple blocks of a block group's inode table overlaps with other file system blocks, only ask once for each block group. Signed-off-by: "Theodore Ts'o" --- e2fsck/pass1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2fsck/pass1.c b/e2fsck/pass1.c index 5672122..9b12005 100644 --- a/e2fsck/pass1.c +++ b/e2fsck/pass1.c @@ -2518,7 +2518,8 @@ static void mark_table_blocks(e2fsck_t ctx) if (ext2fs_test_block_bitmap(ctx->block_found_map, b)) { pctx.blk = b; - if (fix_problem(ctx, + if (!ctx->invalid_inode_table_flag[i] && + fix_problem(ctx, PR_1_ITABLE_CONFLICT, &pctx)) { ctx->invalid_inode_table_flag[i]++; ctx->invalid_bitmaps++; -- 1.8.3.1