cluster/gfs2 edit/gfs2hex.c edit/hexedit.c lib ...
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2007-07-30 15:31:23
Modified files:
gfs2/edit : gfs2hex.c hexedit.c
gfs2/libgfs2 : ondisk.h
Log message:
Added ability to parse and print journal information. For example:
gfs2_edit -p journal2 /dev/roth_vg/roth_lv
Also added the ability to jump relative block numbers. This is for when you jump to a block by "editing" the block number:
Cursor up to block number, press <enter> to enter destination block. Before you could type a structure or block number. Now you can type in a structure, block number, or relative block number. For example, if you're on the superblock (block 0x10) enter +0x300 will take you to block 0x310. This number may be in decimal or hex and may be positive or negative.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/gfs2hex.c.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.c.diff?cvsroot=cluster&r1=1.17&r2=1.18
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/libgfs2/ondisk.h.diff?cvsroot=cluster&r1=1.2&r2=1.3
gfs2/edit/gfs2hex.c +8 -0
@@ -464,6 +464,7 @@struct gfs2_rgrp rg;struct gfs2_leaf lf;struct gfs2_log_header lh; +struct gfs2_log_descriptor ld;uint32_t magic;
@@ -528,6 +529,13 @@gfs2_log_header_print (&lh);break ; +case GFS2_METATYPE_LD : +print_gfs2 ("Log descriptor" ); +eol (0 ); +gfs2_log_descriptor_in (&ld, buf); +gfs2_log_descriptor_print (&ld); +break ; +case GFS2_METATYPE_EA :print_gfs2 ("Eattr Block:" );eol (0 );
gfs2/edit/hexedit.c +113 -6
159 lines not on this page · raw message
gfs2/libgfs2/ondisk.h +2 -0
@@ -35,6 +35,8 @@extern void gfs2_ea_header_out (struct gfs2_ea_header *ea,char *buf);extern void gfs2_log_header_in (struct gfs2_log_header *lh,char *buf);extern void gfs2_log_header_out (struct gfs2_log_header *lh,char *buf); +extern void gfs2_log_descriptor_in (struct gfs2_log_descriptor *ld,char *buf); +extern void gfs2_log_descriptor_out (struct gfs2_log_descriptor *ld,char *buf);extern void gfs2_inum_range_in (struct gfs2_inum_range *ir,char *buf);extern void gfs2_inum_range_out (struct gfs2_inum_range *ir,char *buf);extern void gfs2_statfs_change_in (struct gfs2_statfs_change *sc,char *buf);