Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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