cluster/gfs2/edit gfs2hex.c hexedit.c hexedit.h
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rpeterso at sourceware.org 2006-06-19 20:49:25
Modified files:
gfs2/edit : gfs2hex.c hexedit.c hexedit.h
Log message:
Fixed problems printing stuffed directories like master and jindex. Also enhanced the jump 'j' command capabilities to jump based on highlighted directory entries. Also made it remember display mode and highlighted entry when jumping from structure to structure.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/gfs2hex.c.diff?cvsroot=cluster&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.c.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.h.diff?cvsroot=cluster&r1=1.3&r2=1.4
gfs2/edit/gfs2hex.c +2 -0
@@ -221,6 +221,8 @@int skip =0 ;/* Directory Entries: */ indirect[0 ].dirents =0 ; + indirect[0 ].block = block; + indirect[0 ].is_dir = TRUE;for (x =sizeof (struct gfs2_dinode ); x < bufsize; x += skip) { skip =indirect_dirent (&indirect[0 ], buf + x, indirect[0 ].dirents);if (skip <=0 )
gfs2/edit/hexedit.c +91 -32
221 lines not on this page · raw message
gfs2/edit/hexedit.h +8 -1
@@ -47,7 +47,6 @@ EXTERN int fd; EXTERN uint64_t block INIT(0); EXTERN int blockhist INIT(0); -EXTERN uint64_t blockstack[BLOCK_STACK_SIZE]; EXTERN int edit_mode INIT(0); EXTERN int line; EXTERN char edit_fmt[80];
@@ -89,6 +88,14 @@struct gfs2_dirents dirent[64 ]; }; +struct blkstack_info { +uint64_t block; +int edit_row[DISPLAY_MODES ]; +int edit_col[DISPLAY_MODES ]; +enum dsp_mode display_mode; +}; + +EXTERN struct blkstack_info blockstack[BLOCK_STACK_SIZE]; EXTERN struct indirect_info indirect[512]; /* more than the most indirectpointers possible for any given 4K block */