From: Darrick J. Wong Date: Tue, 22 Jul 2014 17:52:33 +0000 (-0400) Subject: e2fsck: report correct inode number in pass1b X-Git-Tag: v1.42.12~81 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e172a942c8d0135ea7a73ab4a6a363ba24b09c;p=thirdparty%2Fe2fsprogs.git e2fsck: report correct inode number in pass1b If there's a problem with the inode scan during pass 1b, report the inode that we were trying to examine when the error happened, not the inode that just went through the checker. Signed-off-by: Darrick J. Wong Signed-off-by: Theodore Ts'o --- diff --git a/e2fsck/pass1b.c b/e2fsck/pass1b.c index 13bd9e981..b4cc5321b 100644 --- a/e2fsck/pass1b.c +++ b/e2fsck/pass1b.c @@ -299,6 +299,7 @@ static void pass1b(e2fsck_t ctx, char *block_buf) if (pctx.errcode == EXT2_ET_BAD_BLOCK_IN_INODE_TABLE) continue; if (pctx.errcode) { + pctx.ino = ino; fix_problem(ctx, PR_1B_ISCAN_ERROR, &pctx); ctx->flags |= E2F_FLAG_ABORT; return;