Bug 703091

Summary: If EXT4_EXTENTS_FL flag is not set, the max file size of write() is different than seek().
Product: Red Hat Enterprise Linux 5 Reporter: Eryu Guan <eguan>
Component: kernelAssignee: Carlos Maiolino <cmaiolin>
Status: CLOSED DUPLICATE QA Contact: Petr Beňas <pbenas>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: cmaiolin, dejohnso, esandeen, kzhang, lczerner, pbenas, pstehlik, rwheeler
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 652013 Environment:
Last Closed: 2013-07-04 13:12:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 652013    
Bug Blocks:    

Comment 1 Eryu Guan 2011-05-09 09:21:43 UTC
This fails on rhel5.7 as well

[root@ibm-x3550m3-02 652013-max-write-and-seek-size-differ]# uname -a
Linux ibm-x3550m3-02.rhts.eng.nay.redhat.com 2.6.18-258.el5 #1 SMP Tue Apr 26 18:27:35 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@ibm-x3550m3-02 652013-max-write-and-seek-size-differ]# make run
chmod a+x ./runtest.sh
tar -xf 3.repro.tar
patch -p0 < exitcode.patch
patching file repro/run.sh
./runtest.sh
/mnt/tests/kernel/filesystems/652013-max-write-and-seek-size-differ/repro/run.sh
Running ./run.sh As root:
###############################################
(noextentfs)(nohugefilefs)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype sparse_super large_file
 EXT3 FILE SEEK/WRITE: 2199023251456/2194719883264
 EXT4 FILE SEEK/WRITE: 2199023251456/2194719883264
Ext3 seek/write file max sizes differ!
Ext4 seek/write file max sizes differ!
###############################################
(noextentfs)(hugefilefs)
...finished running ./run.sh, exit code=5
/kernel/filesystems/652013-max-write-and-seek-size-differ result: FAIL

Comment 2 Eric Sandeen 2011-05-09 17:40:37 UTC
As stated in the other bug:

Just as a general note, using the ext4 driver for ext3 filesystems in RHEL6 is
not recommended.  We can fix this, but it's not the preferred mode of
operation.

Thanks,
-Eric

Comment 3 Ric Wheeler 2011-05-09 19:11:17 UTC
I would state this more strongly - running ext3 file systems with ext4 is not supported in RHEL since we do not test this combination.

Development will of course pull in reasonable fixes, but this should not impact any production use case.

Thanks!