-
Bug
-
Resolution: Done-Errata
-
Minor
-
rhel-9.4
-
None
-
gfs2-utils-3.5.1-2.el9
-
None
-
None
-
rhel-sst-filesystems
-
ssg_filesystems_storage_and_HA
-
20
-
2
-
False
-
-
None
-
None
-
None
What were you trying to do that didn't work?
- gfs2_edit restoremeta into a sparse file as the target device, followed by
- fsck.gfs2
Steps to reproduce
- Create an empty file with:
- echo -n '' > sparse
- Restore a filesystem's metadata into that file (which becomes sparse):
- gfs2_edit restoremeta meta.gz sparse
- Check the consistency of the metadata:
- fsck.gfs2 sparse
Expected results
After the restoremeta, the sparse file should at least be as big as the filesystem the metadata belongs to. fsck.gfs2 should not complain about the device size.
Actual results
The restoremeta command restores the metadata, but doesn't truncate the sparse file to the filesystem size, so the blocks beyond the last metadata block are missing.
I don't know if this only affects older versions of gfs2-utils, or if this issue still exists.
- links to
-
RHBA-2024:134352 gfs2-utils update