Bug 1101558

Summary: e2fsck cannot check an ext4 file system with 64bit feature enabled
Product: Red Hat Enterprise Linux 6 Reporter: Milan Barta <mbarta>
Component: e2fsprogsAssignee: Eric Sandeen <esandeen>
Status: CLOSED NOTABUG QA Contact: Filesystem QE <fs-qe>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.6CC: rocking.atharva, sct, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-27 18:05:09 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 Milan Barta 2014-05-27 14:00:31 UTC
Description of problem:
e2fsck fails to check an ext4 file system with 64bit feature enabled. 

$ sudo e2fsck /home/fs.img 
e2fsck 1.41.12 (17-May-2010)
/home/fs.img has unsupported feature(s): 64bit
e2fsck: Get a newer version of e2fsck!

This happened to me when I tried to mount an ext4 file system during boot on RHEL6. The file system has been created on RHEL7 (which enables the 64bit feature by default). The booting process failed due to e2fsck being unable to check the file system.

Version-Release number of selected component (if applicable):
e2fsprogs-1.41.12-18.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. create an ext4 file system with 64bit feature enabled (using newer version of e2fsprogs - e.g. from RHEL7)
2. run e2fsck on the created file system

Actual results:
e2fsck prints out an error message of unsupported feature and quits

Expected results:
e2fsck checks the file system for errors

Additional info:
Mounting the file system works fine. The only problem is with e2fsprogs which are probably too old to handle the 64bit feature. This is particularly inconvenient when the whole booting process fails due to e2fsck being unable to check the file system.

Comment 1 Eric Sandeen 2014-05-27 18:05:09 UTC
> Steps to Reproduce:
> 1. create an ext4 file system with 64bit feature enabled (using newer version of e2fsprogs - e.g. from RHEL7)

That's not a supported thing to do.

We cannot make all old releases support all new features; you broke it and you get to keep both pieces.

(However, mounting w/ an unsupported feature is odd, let me look into that)

Comment 2 Eric Sandeen 2014-05-27 18:16:03 UTC
Allowing a mount w/ that feature seems like some ext4-derp; I wouldn't recommend continuing with that filesystem under RHEL6, it's not something that is tested.  At all.

-Eric

Comment 3 Atharva Deshmukh 2016-05-21 12:03:09 UTC
e2fsck -f /dev/sdc1

Output: e2fsck 1.41.12 (17-May-2010)
/dev/sdc1 has unsupported feature(s): 64bit
e2fsck: Get a newer version of e2fsck!

Did the following to fix the issue (CentOS 6.7 x86_64)

wget https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.43/e2fsprogs-1.43.tar.xz

tar -xf e2fsprogs-1.43.tar.xz
cd e2fsprogs-1.43
./configure
make
make install

e2fsck -V
Output: 

e2fsck 1.43 (17-May-2016)


e2fsck -V
e2fsck 1.43 (17-May-2016)
	Using EXT2FS Library version 1.43, 17-May-2016


e2fsck -f /dev/sdc1

e2fsck 1.43 (17-May-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Disk1: 89638/9773056 files (0.2% non-contiguous), 24911627/39072470 blocks

-Arthar360

Comment 4 Atharva Deshmukh 2016-05-21 12:05:53 UTC
(In reply to Atharva Deshmukh from comment #3)
> e2fsck -f /dev/sdc1
> 
> Output: e2fsck 1.41.12 (17-May-2010)
> /dev/sdc1 has unsupported feature(s): 64bit
> e2fsck: Get a newer version of e2fsck!
> 
> Did the following to fix the issue (CentOS 6.7 x86_64)
> 
> wget
> https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.43/
> e2fsprogs-1.43.tar.xz
> 
> tar -xf e2fsprogs-1.43.tar.xz
> cd e2fsprogs-1.43
> ./configure
> make
> make install
> 
> e2fsck -V
> e2fsck 1.43 (17-May-2016)
> 	Using EXT2FS Library version 1.43, 17-May-2016
> 
> 
> e2fsck -f /dev/sdc1
> 
> e2fsck 1.43 (17-May-2016)
> Pass 1: Checking inodes, blocks, and sizes
> Pass 2: Checking directory structure
> Pass 3: Checking directory connectivity
> Pass 4: Checking reference counts
> Pass 5: Checking group summary information
> Disk1: 89638/9773056 files (0.2% non-contiguous), 24911627/39072470 blocks
> 
> -Arthar360