gfs2-utils: RHEL7 - fsck.gfs2: Print out block number when pass3 finds a bad directory

Andrew Price andyp at fedoraproject.org
Tue Apr 7 21:23:21 UTC 2015


Gitweb:        http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=e85902814022324dda6dce30df30e30efbced2c8
Commit:        e85902814022324dda6dce30df30e30efbced2c8
Parent:        4e0f9f4761f6cc41a0ad74b0b30d9264fe6c0ce0
Author:        Bob Peterson <rpeterso at redhat.com>
AuthorDate:    Wed Dec 17 10:22:25 2014 -0600
Committer:     Andrew Price <anprice at redhat.com>
CommitterDate: Wed Apr 1 16:51:35 2015 +0100

fsck.gfs2: Print out block number when pass3 finds a bad directory

This patch changes pass3 so that it prints out the directory inode
number when it finds a directory containing a bad block.
---
 gfs2/fsck/pass3.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/gfs2/fsck/pass3.c b/gfs2/fsck/pass3.c
index 167dac0..3e183e5 100644
--- a/gfs2/fsck/pass3.c
+++ b/gfs2/fsck/pass3.c
@@ -249,7 +249,10 @@ int pass3(struct gfs2_sbd *sdp)
 			q = block_type(di->dinode.no_addr);
 			if (q == gfs2_bad_block) {
 				log_err( _("Found unlinked directory "
-					   "containing bad block\n"));
+					   "containing bad block at block %llu"
+					   " (0x%llx)\n"),
+					(unsigned long long)di->dinode.no_addr,
+					(unsigned long long)di->dinode.no_addr);
 				if (query(_("Clear unlinked directory "
 					   "with bad blocks? (y/n) "))) {
 					log_warn( _("inode %lld (0x%llx) is "


More information about the cluster-commits mailing list