Description of problem: The current gfs_edit program does not have any capabilities to print GFS structures or any of the new gfs2_edit features. It would be nice to allow gfs2_edit be able to distinguish between a gfs1 and gfs2 file system and be able to view, edit, and print gfs1 data structures such as the superblock, root directory, rgindex, journal index, etc. Version-Release number of selected component (if applicable): RHEL5 beta 1 with latest cluster software from HEAD How reproducible: Always Steps to Reproduce: 1. gfs2_edit /dev/gfs1_vg/gfs1_lvol Actual results: gfs2_edit treats a gfs1 fs as if it were gfs2. Expected results: gfs2_edit should flag the difference and allow printing of gfs1 data structures (i.e. superblock, directories, etc) when run on a gfs1 file system. Additional info: I've already written changes to do this so I could use the print function to help in debugging a customer issue involving a gfs1 file system. I just wanted this bugzilla record to document these code changes.
Created attachment 140685 [details] Patch to allow gfs2_edit to operate on gfs1 file systems
Code was committed to cvs for HEAD and RHEL5 that's better than the previous patch. The previous patch did not correctly identify and show/print some of the inode information that's changed from gfs1. Also added a 'c' command to toggle the color scheme. Also added a few command and parameter synonyms like 'rgindex' for 'rindex' and -help for -h. This is much easier than trying to port the missing gfs2_edit functionality to gfs_edit.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2007-0579.html