Bug 27199

Summary: file can't stat large files (> 2GB)
Product: [Retired] Red Hat Linux Reporter: Need Real Name <drees>
Component: fileAssignee: Crutcher Dunnavant <crutcher>
Status: CLOSED RAWHIDE QA Contact: Aaron Brown <abrown>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: redhat
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-02-12 19:53:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Need Real Name 2001-02-12 19:53:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (Windows NT 5.0; U)


When trying to identify a large file using `file`, it reports that it can't stat it.  Of course, you have to be running a 2.4.X kernel to do this since 2.2 
kernels don't support large files.

shooter:~> ls -l /tmp/bigfile 
-rw-rw-r--    1 drees    drees     3145728000 Feb 10 11:29 /tmp/bigfile
shooter:~> file /tmp/bigfile
/tmp/bigfile: can't stat `/tmp/bigfile' (Value too large for defined data type).
shooter:~> 

Reproducible: Always
Steps to Reproduce:
1. Create large file using dd:  `dd if=/dev/zero of=/tmp/bigfile bs=1M count=3000
2. Attempt to determine the file type `file /tmp/bigfile`

Comment 1 Nalin Dahyabhai 2001-02-15 04:25:51 UTC
This appears to work correctly in Raw Hide.

Comment 2 Jeremy Sanders 2001-06-12 08:45:09 UTC
*** Bug 42110 has been marked as a duplicate of this bug. ***

Comment 3 Nick Lamb 2001-08-01 04:25:09 UTC
RawHide doesn't seem to fix it for me, running file-3.35-2.i386.rpm from RawHide...
rpm -q file
file-3.35-2

ls -lH HUGE
-rw-rw-r--    1 ruth     ruth         5.2G Aug  1 05:02 HUGE

file HUGE
HUGE: can't stat `HUGE' (Value too large for defined data type).