Bug 4345 - incorrect file size under 64-bit kernel
Summary: incorrect file size under 64-bit kernel
Status: CLOSED INVALID
Alias: None
Product: File System
Classification: Unclassified
Component: JFS (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Dave Kleikamp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-15 17:36 UTC by Max Alekseyev
Modified: 2005-03-17 08:10 UTC (History)
0 users

See Also:
Kernel Version: 2.6.11.3
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
jfs_bug.c (1.34 KB, text/plain)
2005-03-15 17:39 UTC, Max Alekseyev
Details

Description Max Alekseyev 2005-03-15 17:36:10 UTC
Distribution: debian-amd64

The provided testcase program creates file with fake size about 280 TiB that is
larger than my JFS partition.

-rw-r--r--  1 relf relf 281474976706576 Mar 15 17:35 testcase
Comment 1 Max Alekseyev 2005-03-15 17:39:44 UTC
Created attachment 4729 [details]
jfs_bug.c

To reproduce:

1. complile the program
gcc jfs_bug.c -o jfs_bug

2. run the program
./jfs_bug

3. observe the file 'testcase' of size 281474976706576
Comment 2 Max Alekseyev 2005-03-15 17:53:05 UTC
Ops! I've found a similar problem on XFS and EXT3 filesystems. What's going on?
Comment 3 Max Alekseyev 2005-03-15 18:54:33 UTC
It happens to be a feature call 'sparse files'.

Marking as INVALID

Sorry about that.


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