Red Hat Bugzilla – Bug 27199
file can't stat large files (> 2GB)
Last modified: 2007-04-18 12:31:25 EDT
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).
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`
This appears to work correctly in Raw Hide.
*** Bug 42110 has been marked as a duplicate of this bug. ***
RawHide doesn't seem to fix it for me, running file-3.35-2.i386.rpm from RawHide...
rpm -q file
ls -lH HUGE
-rw-rw-r-- 1 ruth ruth 5.2G Aug 1 05:02 HUGE
HUGE: can't stat `HUGE' (Value too large for defined data type).