Bug 111407

Summary: Can't stat big (over 2Gb) file in ext2
Product: [Fedora] Fedora Reporter: Roger Strandberg <roger>
Component: filesystemAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1CC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-12-03 17:59:25 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:

Description Roger Strandberg 2003-12-03 10:04:07 UTC
Can't stat big file in Fedora Core 1 with ext2 filesystem


if(stat(filename, &filestat))
{
  printf("unable to stat file %s", filename);
}

If file is under 2GB then no problem, if file bigger then 
result -1.

I run swapoff -a before.
I have 512Mb Ram 2.4Ghz and Adaptec SATA Raid.

Comment 1 Bill Nottingham 2003-12-03 17:59:25 UTC
You need to use stat64, or build with large file support.