Bug 33729 - ext2fs does not actually allocate space in this particular scenerio
ext2fs does not actually allocate space in this particular scenerio
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: e2fsprogs (Show other bugs)
6.0
i686 Linux
high Severity high
: ---
: ---
Assigned To: Florian La Roche
Aaron Brown
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-03-28 20:47 EST by Vaibhav A Nalawade
Modified: 2005-10-31 17:00 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-03-28 20:47:34 EST
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 Vaibhav A Nalawade 2001-03-28 20:47:30 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.73 [en] (Windows NT 5.0; U)


Hi ,

    This is in reference to bug 29991. 
    In a program  open a file and jump to 2GB offset and insert a character  at that offset 
    and close the file. The ls -l command shows the file size to be 2GB but df -k command does not 
    show any change in the disk space allocation.In other words the space is not actually allocated. 

Reproducible: Always
Steps to Reproduce:
1.In a program open a file
2.Jump to 2GB offset and try writing a character to the file
3.Close the file
4. 	

Actual Results:  ls -l command shows the file size to be 2GB.
df -k however does not show that 2GB file size is allocated.


Expected Results:  
Question : 1)  How do I allocate 2GB of file size without actually writing 2GB of data to the file ? 
                2)  Do we have some file system tunning parameter so that when ever we jump to 2GB offset and write
                    a character - 2GB size file get allocated on the disk ?
                3)  The file system is trying to do some sort of optimization. I want to turn off this optimization. This is required
                     for database use.    . 

Regards 
Vaibhav Nalawade
Comment 1 Florian La Roche 2001-04-06 17:01:15 EDT
the filesystem is smart and creates "holes" if you seek beyond the end of the
file

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