[Ocfs2-tools-devel] [PATCH 1/1] ocfs2-tools: correct inode number in prompt in check_link_counts
Tiger Yang
tiger.yang at oracle.com
Mon Feb 23 03:17:05 PST 2009
We don't get the correct ocfs2_dinode until ocfs2_read_inode(),
so di->i_blkno is wrong at that line.
Signed-off-by: Tiger Yang <tiger.yang at oracle.com>
---
fsck.ocfs2/pass4.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/fsck.ocfs2/pass4.c b/fsck.ocfs2/pass4.c
index af33185..d713d13 100644
--- a/fsck.ocfs2/pass4.c
+++ b/fsck.ocfs2/pass4.c
@@ -61,8 +61,7 @@ static void check_link_counts(o2fsck_state *ost,
if (refs == 0 &&
prompt(ost, PY, PR_INODE_NOT_CONNECTED,
"Inode %"PRIu64" isn't referenced by any "
- "directory entries. Move it to lost+found?",
- (uint64_t)di->i_blkno)) {
+ "directory entries. Move it to lost+found?", blkno)) {
o2fsck_reconnect_file(ost, blkno);
refs = o2fsck_icount_get(ost->ost_icount_refs, blkno);
}
--
1.5.4.1
More information about the Ocfs2-tools-devel
mailing list