commit ff0e3708e441d15d620a611a6d25cbc9d89d57f1 Author: Bob Peterson <bob@ganesha.peterson> Date: Thu Jan 21 18:07:06 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 diff --git a/gfs2/fsck/fs_recovery.c b/gfs2/fsck/fs_recovery.c index fd61821..ca2ee52 100644 --- a/gfs2/fsck/fs_recovery.c +++ b/gfs2/fsck/fs_recovery.c @@ -133,6 +133,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); @@ -183,6 +187,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; @@ -230,6 +239,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);