Bug 1780277

Summary: Update mke2fs.conf to provide easy method of making RHEL6-compatible filesystems
Product: Red Hat Enterprise Linux 7 Reporter: Eric Sandeen <esandeen>
Component: e2fsprogsAssignee: Lukáš Czerner <lczerner>
Status: CLOSED ERRATA QA Contact: Boyang Xue <bxue>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.8CC: lczerner, rhandlin, xzhou
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: e2fsprogs-1.42.9-18.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 20:34:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eric Sandeen 2019-12-05 15:48:43 UTC
A partner is interested in an easy and reliable way to create RHEL6-compatible ext4 filesystems with a RHEL7 OS.

Since mke2fs has a config file (mke2fs.conf) with configurable fs_types that specify features and options, I think it should be possible to add a new type which matches the RHEL6 defaults.

(As a side note, we should verify that mounting such a filesystem under RHEL7 does not add any RHEL6-incompatible on-disk feature flags as part of the mount process.)

Comment 14 Boyang Xue 2020-06-17 08:58:55 UTC
TEST PASS.

Verified with e2fsprogs-1.42.9-18.el7
---
[root@ci-vm-10-0-139-60 ~]# mkfs.ext4 -t rhel6_ext4 -F rhel6_rhel7.img

[root@ci-vm-10-0-139-229 rhelX-fs-compatible-test]# make run
...
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   /kernel/filesystems/ext4/rhelX-fs-compatible-test/rhel6_rhel7.img.bz2
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 04:52:03 ] :: [  BEGIN   ] :: Running 'IMG_BN=rhel6_rhel7'
:: [ 04:52:03 ] :: [   PASS   ] :: Command 'IMG_BN=rhel6_rhel7' (Expected 0, got 0)
:: [ 04:52:03 ] :: [  BEGIN   ] :: Running 'IMG_ORIG_FLAGS="Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize"'
:: [ 04:52:03 ] :: [   PASS   ] :: Command 'IMG_ORIG_FLAGS="Filesystem features:      has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super huge_file uninit_bg dir_nlink extra_isize"' (Expected 0, got 0)
:: [ 04:52:03 ] :: [  BEGIN   ] :: Running 'bunzip2 rhel6_rhel7.img.bz2'
:: [ 04:52:03 ] :: [   PASS   ] :: Command 'bunzip2 rhel6_rhel7.img.bz2' (Expected 0, got 0)
dumpe2fs 1.41.12 (17-May-2010)
:: [ 04:52:03 ] :: [   PASS   ] :: filesystem flags unchanged 
:: [ 04:52:03 ] :: [  BEGIN   ] :: Running 'mkdir rhel6_rhel7'
:: [ 04:52:03 ] :: [   PASS   ] :: Command 'mkdir rhel6_rhel7' (Expected 0, got 0)
:: [ 04:52:03 ] :: [  BEGIN   ] :: Running 'mount -o loop rhel6_rhel7.img rhel6_rhel7'
:: [ 04:52:03 ] :: [   PASS   ] :: Command 'mount -o loop rhel6_rhel7.img rhel6_rhel7' (Expected 0, got 0)
:: [ 04:52:03 ] :: [   PASS   ] :: mount rhel6_rhel7.img successfully 
:: [ 04:52:03 ] :: [  BEGIN   ] :: Running 'umount rhel6_rhel7'
:: [ 04:52:03 ] :: [   PASS   ] :: Command 'umount rhel6_rhel7' (Expected 0, got 0)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 8 good, 0 bad
::   RESULT: PASS
...
---

Comment 16 errata-xmlrpc 2020-09-29 20:34:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: e2fsprogs security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:4011