cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [gfs2-utils patch] gfs2_edit: print LB (log descriptor continuation blocks) for GFS2
       [not found] <1836397976.20252915.1402507879198.JavaMail.zimbra@redhat.com>
@ 2014-06-11 17:32 ` Bob Peterson
  0 siblings, 0 replies; only message in thread
From: Bob Peterson @ 2014-06-11 17:32 UTC (permalink / raw)
  To: cluster-devel.redhat.com

Hi,

This patch allows gfs2_edit to print metadata blocks of type LB
(log descriptor continuation blocks) for GFS2. Prior to this, only
GFS1's continuation blocks would print.

Regards,

Bob Peterson
Red Hat File Systems

Signed-off-by: Bob Peterson <rpeterso@redhat.com> 
---
diff --git a/gfs2/edit/journal.c b/gfs2/edit/journal.c
index e012bc3..bb56649 100644
--- a/gfs2/edit/journal.c
+++ b/gfs2/edit/journal.c
@@ -582,12 +582,15 @@ void dump_journal(const char *journal, int tblk)
 					   " [UNMOUNTED]" : "");
 			}
 			eol(0);
-		} else if (sbd.gfs1 && ld_blocks > 0) {
-			print_gfs2("0x%llx (j+%4llx): GFS log descriptor"
+		} else if ((ld_blocks > 0) &&
+			   (sbd.gfs1 || block_type == GFS2_METATYPE_LB)) {
+			print_gfs2("0x%llx (j+%4llx): Log descriptor"
 				   " continuation block", abs_block, jb);
 			eol(0);
 			print_gfs2("                    ");
-			ld_blocks -= print_ld_blks((uint64_t *)dummy_bh.b_data,
+			ld_blocks -= print_ld_blks((uint64_t *)dummy_bh.b_data +
+						   (sbd.gfs1 ? 0 :
+						    sizeof(struct gfs2_meta_header)),
 						   (dummy_bh.b_data +
 						    sbd.bsize), start_line,
 						   tblk, &tblk_off, 0, rgd,



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-11 17:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1836397976.20252915.1402507879198.JavaMail.zimbra@redhat.com>
2014-06-11 17:32 ` [Cluster-devel] [gfs2-utils patch] gfs2_edit: print LB (log descriptor continuation blocks) for GFS2 Bob Peterson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).