From ea9085c711e92c3727538a0637bc805141333d83 Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Wed, 5 Nov 2014 11:10:31 -0500 Subject: [PATCH] e2fsck: fix reporting of unknown htree block inode number Sami Liedes reports that e2fsck fails to report the correct directory inode number during a pass2 check for unexpected HTREE blocks. Provide the inode number in the problem report. Signed-off-by: Darrick J. Wong Reported-by: Sami Liedes Signed-off-by: Theodore Ts'o --- e2fsck/pass2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/e2fsck/pass2.c b/e2fsck/pass2.c index 2b7bff4..ddfe2eb 100644 --- a/e2fsck/pass2.c +++ b/e2fsck/pass2.c @@ -795,6 +795,7 @@ static int check_dir_block(ext2_filsys fs, dx_dir = e2fsck_get_dx_dir_info(ctx, ino); if (dx_dir && dx_dir->numblocks) { if (db->blockcnt >= dx_dir->numblocks) { + pctx.dir = ino; if (fix_problem(ctx, PR_2_UNEXPECTED_HTREE_BLOCK, &pctx)) { clear_htree(ctx, ino); -- 1.8.3.1