Bug 54624 - stat truncates large files' size
stat truncates large files' size
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: stat (Show other bugs)
7.1
All Linux
medium Severity medium
: ---
: ---
Assigned To: Ngo Than
Ben Levenson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-10-13 19:15 EDT by Ben LaHaise
Modified: 2007-04-18 12:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-10-17 13:21:42 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ben LaHaise 2001-10-13 19:15:47 EDT
Use of stat on large (>2GB) files leads to misleading results being 
printed.  This appears to be caused by truncating the 64 bit length used 
in LFS to 32 bits when printing.  See below.  This bug is in 7.*

[root@toomuch root]# ls -l /bcrl/sda6_6.2.bak 
-rw-rw-r--    1 bcrl     cygnus   4894007296 Dec  6  2000 
/bcrl/sda6_6.2.bak
[root@toomuch root]# stat /bcrl/sda6_6.2.bak 
  File: "/bcrl/sda6_6.2.bak"
  Size: 599040000       Blocks: 9567968    IO Block: 4096   Regular File
Device: 806h/2054d      Inode: 32780       Links: 1    
Access: (0664/-rw-rw-r--)  Uid: (  621/    bcrl)   Gid: ( 1002/  cygnus)
Access: Wed Dec  6 12:44:43 2000
Modify: Wed Dec  6 12:48:05 2000
Change: Mon Aug 13 14:45:03 2001

[root@toomuch root]#
Comment 1 Ngo Than 2001-10-16 19:40:15 EDT
please try stat-2.5-2 in 7.2. It should fix this problem.
Comment 2 Ben LaHaise 2001-10-17 13:21:37 EDT
I said all releases.  This includes 7.2 with stat 2.5-2.
Comment 3 Ngo Than 2001-10-17 19:03:43 EDT
It's fixed in stat-2.5-3. You will find it in rawhide

Note You need to log in before you can comment on or make changes to this bug.