cluster: STABLE3 - fsck.gfs2: Journal replay should report what it's doing
Bob Peterson
rpeterso at fedoraproject.org
Tue Jan 26 21:20:10 UTC 2010
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=1f8086a6382a337bc4febab691b83a7ce673e266
Commit: 1f8086a6382a337bc4febab691b83a7ce673e266
Parent: 00652ee37168d9831d04012e767e8923309d0575
Author: Bob Peterson <bob at ganesha.peterson>
AuthorDate: Thu Jan 21 18:07:06 2010 -0600
Committer: Bob Peterson <rpeterso at redhat.com>
CommitterDate: Tue Jan 26 14:39:30 2010 -0600
fsck.gfs2: Journal replay should report what it's doing
When replaying the journals, fsck.gfs2 needs to report what it's
doing, if -v is specified.
rhbz#455300
---
gfs2/fsck/fs_recovery.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/gfs2/fsck/fs_recovery.c b/gfs2/fsck/fs_recovery.c
index 893b622..ce3aaa5 100644
--- a/gfs2/fsck/fs_recovery.c
+++ b/gfs2/fsck/fs_recovery.c
@@ -118,6 +118,10 @@ static int buf_lo_scan_elements(struct gfs2_inode *ip, unsigned int start,
if (error)
return error;
+ log_info( _("Journal replay writing metadata block #"
+ "%lld (0x%llx) for journal+0x%x\n"),
+ (unsigned long long)blkno, (unsigned long long)blkno,
+ start);
bh_ip = bget(sdp, blkno);
memcpy(bh_ip->b_data, bh_log->b_data, sdp->bsize);
@@ -168,6 +172,11 @@ static int revoke_lo_scan_elements(struct gfs2_inode *ip, unsigned int start,
}
while (offset + sizeof(uint64_t) <= sdp->sd_sb.sb_bsize) {
blkno = be64_to_cpu(*(__be64 *)(bh->b_data + offset));
+ log_info( _("Journal replay processing revoke for "
+ "block #%lld (0x%llx) for journal+0x%x\n"),
+ (unsigned long long)blkno,
+ (unsigned long long)blkno,
+ start);
error = gfs2_revoke_add(sdp, blkno, start);
if (error < 0)
return error;
@@ -217,6 +226,10 @@ static int databuf_lo_scan_elements(struct gfs2_inode *ip, unsigned int start,
if (error)
return error;
+ log_info( _("Journal replay writing data block #%lld (0x%llx)"
+ " for journal+0x%x\n"),
+ (unsigned long long)blkno, (unsigned long long)blkno,
+ start);
bh_ip = bget(sdp, blkno);
memcpy(bh_ip->b_data, bh_log->b_data, sdp->bsize);
More information about the cluster-commits
mailing list