Bug 634623
| Summary: | GFS2: gfs2_edit enhancements for RHEL6.1 | ||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Robert Peterson <rpeterso> | ||||||||||||||||||||||||||
| Component: | cluster | Assignee: | Robert Peterson <rpeterso> | ||||||||||||||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Cluster QE <mspqa-list> | ||||||||||||||||||||||||||
| Severity: | high | Docs Contact: | |||||||||||||||||||||||||||
| Priority: | high | ||||||||||||||||||||||||||||
| Version: | 6.0 | CC: | adas, bmarzins, cluster-maint, fdinitto, jwest, lhh, rpeterso, ssaha, swhiteho | ||||||||||||||||||||||||||
| Target Milestone: | rc | ||||||||||||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||||||||||||
| Hardware: | All | ||||||||||||||||||||||||||||
| OS: | Linux | ||||||||||||||||||||||||||||
| Whiteboard: | |||||||||||||||||||||||||||||
| Fixed In Version: | cluster-3.0.12-25.el6 | Doc Type: | Bug Fix | ||||||||||||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||||||||||||
| Clone Of: | |||||||||||||||||||||||||||||
| : | 656371 (view as bug list) | Environment: | |||||||||||||||||||||||||||
| Last Closed: | 2011-05-19 12:53:59 UTC | Type: | --- | ||||||||||||||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||||||||||||
| Embargoed: | |||||||||||||||||||||||||||||
| Bug Depends On: | |||||||||||||||||||||||||||||
| Bug Blocks: | 656371, 674843 | ||||||||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||||||||
|
Description
Robert Peterson
2010-09-16 15:05:29 UTC
(4) I want to change restoremeta and savemeta to provide some meaningful information as to its progress. Case in point: The printsavedmeta option reports this size: [root@west-16 ../gfs2/edit]# gfs2_edit printsavedmeta /home/bob/metadata/gfs2/1773738-metasave 0x09 This is gfs2 metadata File system size: 439464830 (0x1a31b37e) blocks, aka 1TB File /home/bob/metadata/gfs2/1773738-metasave print successful. Yet restoremeta reports this, and fails on a 1TB device: There are 271056896 blocks of 4096 bytes in the destination file system. 2268215 metadata blocks (8860MB) restored. Error: File system is too small to restore this metadata. File system is 271056896 blocks, Restore block = 271110549 Nate also noted that gfs2_edit restoremeta does not work on sparse files to be mounted as loopback. So consider this (5). Created attachment 450934 [details]
Latest patch from 06 Jul 2010
Created attachment 450935 [details]
Patch 2
Created attachment 450936 [details]
patch 3
Created attachment 450937 [details]
patch 4
Created attachment 450938 [details]
patch 5
Created attachment 451013 [details]
patch 6
Created attachment 451059 [details]
patch 7
Created attachment 451522 [details]
patch 8
Created attachment 451523 [details]
patch 9
*** Bug 623467 has been marked as a duplicate of this bug. *** Created attachment 451525 [details]
patch 10
Created attachment 451557 [details]
patch 11
Created attachment 451685 [details]
patch 12
I had this handy little patch squirrelled away in my vault.
Concise list of patches for this bugzilla: 1. gfs2_edit: better printing of directory leaf information 2. gfs2_edit: print hex numbers in lower-case 3. gfs2_edit: negative block numbers don't jump a negative amount 4. gfs2_edit: tiny (stuffed) files had user data saved with savemeta 5. gfs2_edit: give meaningful feedback for savemeta and restoremeta 6. gfs2_edit: Fix memory leak in savemeta option 7. gfs2_edit: Split extended display functions into extended.c 8. gfs2_edit: Move more functions to extended.c 9. gfs2_edit: Extend individual field printing/editing 10. gfs2_edit: fix page down on rindex 11. gfs2_edit: print field names in right column 12. gfs2_edit: display block allocation on rgrps and bitmaps The twelve patches (plus a thirteenth which fixed up extended.h so it had the standard conditional compile stuff) were pushed to the master branch of the gfs2-utils git repository and the RHEL6 branch of the cluster git repository for inclusion into RHEL6. Changing status to POST until we start doing 6.1 builds. Verified all 13 patches are included and applied in gfs2-utils-3.0.12-40.el6. 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 therefore 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-2011-0537.html |