From: Bob Peterson <rpete...@redhat.com> This patch adds a message to the fsck output that indicates which block reference is acceptable. That helps to determine if fsck made the right decision when a duplicate is resolved.
rhbz#902920 --- gfs2/fsck/pass1b.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gfs2/fsck/pass1b.c b/gfs2/fsck/pass1b.c index bd60d84..56b77f5 100644 --- a/gfs2/fsck/pass1b.c +++ b/gfs2/fsck/pass1b.c @@ -485,6 +485,15 @@ static int resolve_dup_references(struct gfs2_sbd *sdp, struct duptree *b, q = block_type(id->block_no); if (q != gfs2_inode_invalid) { found_good_ref = 1; + log_warn( _("Inode %s (%lld/0x%llx)'s " + "reference to block %llu (0x%llx) " + "as '%s' is acceptable.\n"), + id->name, + (unsigned long long)id->block_no, + (unsigned long long)id->block_no, + (unsigned long long)b->block, + (unsigned long long)b->block, + reftypes[this_ref]); continue; /* don't delete the dinode */ } } -- 1.7.11.7