gfs2-utils: master - fsck.gfs2: Print debug message to dilineate metadata blocks
Bob Peterson
rpeterso at fedoraproject.org
Tue Sep 29 18:38:23 UTC 2015
Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=40127ca5abc87bd93d748884a8b8b58d83afc234
Commit: 40127ca5abc87bd93d748884a8b8b58d83afc234
Parent: 7520428d1f78a538243b92226335ce9d1551633c
Author: Bob Peterson <rpeterso at redhat.com>
AuthorDate: Thu Sep 24 13:42:03 2015 -0500
Committer: Bob Peterson <rpeterso at redhat.com>
CommitterDate: Tue Sep 29 13:23:48 2015 -0500
fsck.gfs2: Print debug message to dilineate metadata blocks
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.
---
gfs2/fsck/metawalk.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/gfs2/fsck/metawalk.c b/gfs2/fsck/metawalk.c
index bb03d1a..8fcaea3 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;
More information about the cluster-commits
mailing list