* [Cluster-devel] [fsck.gfs2 patch] fsck.gfs2: Print out block number when pass3 finds a bad directory
[not found] <796887447.6841366.1420830936175.JavaMail.zimbra@redhat.com>
@ 2015-01-09 19:16 ` Bob Peterson
0 siblings, 0 replies; only message in thread
From: Bob Peterson @ 2015-01-09 19:16 UTC (permalink / raw)
To: cluster-devel.redhat.com
Hi,
This patch changes pass3 so that it prints out the directory inode
number when it finds a directory containing a bad block.
Regards,
Bob Peterson
Red Hat File Systems
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
---
diff --git a/gfs2/fsck/pass3.c b/gfs2/fsck/pass3.c
index 9582b5b..33865df 100644
--- a/gfs2/fsck/pass3.c
+++ b/gfs2/fsck/pass3.c
@@ -246,7 +246,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 "
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-01-09 19:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <796887447.6841366.1420830936175.JavaMail.zimbra@redhat.com>
2015-01-09 19:16 ` [Cluster-devel] [fsck.gfs2 patch] fsck.gfs2: Print out block number when pass3 finds a bad directory Bob Peterson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.