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 - Update mke2fs.conf to provide easy method of making RHEL6-compatible filesystems
Summary: Update mke2fs.conf to provide easy method of making RHEL6-compatible filesystems
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: e2fsprogs
Version: 7.8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Lukáš Czerner
QA Contact: Boyang Xue
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-12-05 15:48 UTC by Eric Sandeen
Modified: 2020-09-29 20:34 UTC (History)
3 users (show)

Fixed In Version: e2fsprogs-1.42.9-18.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 20:34:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4011 0 None None None 2020-09-29 20:34:25 UTC

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


Note You need to log in before you can comment on or make changes to this bug.