Red Hat Bugzilla – Bug 214513
gfs2_convert must reject file systems with block size != 4K
Last modified: 2010-01-11 22:36:39 EST
Description of problem:
In GFS, users could specify (with gfs_mkfs -b X) any block size, but
GFS2 is only designed for 4K blocks. If gfs2_convert tries to convert
a GFS1 file system with blocks other than 4K, the resulting file
system will be unusable and will likely cause a kernel panic.
Therefore, gfs2_convert needs to reject GFS1 file systems
with alternate block sizes.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. gfs_mkfs -b 8192 ... /dev/your/device
2. gfs2_convert /dev/your/device
3. mount -tgfs2 /dev/your/device /mnt/gfs2
4. mkdir /mnt/gfs2/anything or touch /mnt/gfs2/anything
Unknown--kernel panic likely
gfs2_convert should give a message that it can't be done and abort.
Code fix committed to CVS HEAD and RHEL5 but not RHEL50 (RHEL5 beta 2)
Code fix committed to CVS RHEL50 branch.
A package has been built which should help the problem described in
this bug report. This report is therefore being closed with a resolution
of CURRENTRELEASE. You may reopen this bug report if the solution does
not work for you.