[Cluster-devel] [gfs2-utils PATCH 18/20] fsck.gfs2: Print debug message to dilineate metadata blocks

Bob Peterson rpeterso at redhat.com
Mon Sep 28 14:46:03 UTC 2015


Before this patch, when the data blocks were checked for a huge
file, there was no way to distinguish which metadata block had the
reference to the data block. This patch adds a new debug message
to announce which metadata block is being processed for the next
set of data blocks being analyzed.

rhbz#1257625
---
 gfs2/fsck/metawalk.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gfs2/fsck/metawalk.c b/gfs2/fsck/metawalk.c
index 6fb5c56..5efbdd3 100644
--- a/gfs2/fsck/metawalk.c
+++ b/gfs2/fsck/metawalk.c
@@ -1454,6 +1454,10 @@ static int check_data(struct gfs2_inode *ip, struct metawalk_fxns *pass,
 	uint64_t metablock = bh->b_blocknr;
 
 	/* If there isn't much pointer corruption check the pointers */
+	log_debug(_("\nProcessing data blocks for inode 0x%llx, metadata "
+		    "block 0x%llx.\n"),
+		  (unsigned long long)ip->i_di.di_num.no_addr,
+		  (unsigned long long)bh->b_blocknr);
 	for (ptr = ptr_start ; (char *)ptr < ptr_end && !fsck_abort; ptr++) {
 		if (!*ptr)
 			continue;
-- 
2.4.3




More information about the Cluster-devel mailing list