From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Peterson Date: Tue, 14 May 2013 11:21:45 -0500 Subject: [Cluster-devel] [gfs2-utils PATCH 22/47] fsck.gfs2: Add clarifying message to duplicate processing In-Reply-To: References: Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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