cluster/gfs2/edit gfs2hex.c hexedit.c hexedit.h
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL5
Changes by: rpeterso at sourceware.org 2006-11-09 15:31:01
Modified files:
gfs2/edit : gfs2hex.c hexedit.c hexedit.h
Log message:
This is the fix for Bugzilla Bug 214621: Allow gfs2_edit to view, print and edit gfs(1) file systems.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/gfs2hex.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.5&r2=1.5.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.c.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.6&r2=1.6.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/edit/hexedit.h.diff?cvsroot=cluster&only_with_tag=RHEL5&r1=1.4&r2=1.4.2.1
gfs2/edit/gfs2hex.c +12 -2
@@ -201,7 +201,8 @@ {unsigned int x, y;uint64_t p, last; -int isdir = !!(S_ISDIR (di->di_mode)); +int isdir = !!(S_ISDIR (di->di_mode)) || + (gfs1 && di->__pad1 ==GFS_FILE_DIR ); indirect_blocks =0 ;memset (&indirect,0 ,sizeof (indirect));
@@ -400,11 +401,20 @@pv (sb, sb_bsize,"%u" ,"0x%x" );pv (sb, sb_bsize_shift,"%u" ,"0x%x" ); -gfs2_inum_print2 ("master dir" , &sb->sb_master_dir); +if (gfs1) { +gfs2_inum_print2 ("jindex ino" , &sbd1->sb_jindex_di); +gfs2_inum_print2 ("rindex ino" , &sbd1->sb_rindex_di); + } +else +gfs2_inum_print2 ("master dir" , &sb->sb_master_dir);gfs2_inum_print2 ("root dir " , &sb->sb_root_dir);pv (sb, sb_lockproto,"%s" ,NULL );pv (sb, sb_locktable,"%s" ,NULL ); +if (gfs1) { +gfs2_inum_print2 ("quota ino " , &gfs1_quota_di); +gfs2_inum_print2 ("license " , &gfs1_license_di); + } }/******************************************************************************
gfs2/edit/hexedit.c +140 -58
328 lines not on this page · raw message
gfs2/edit/hexedit.h +47 -0
71 lines not on this page · raw message