From Bugzilla Helper:
User-Agent: Mozilla/4.73 [en] (Windows NT 5.0; U)
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.
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
Actual Results: ls -l command shows the file size to be 2GB.
df -k however does not show that 2GB file size is allocated.
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. .
the filesystem is smart and creates "holes" if you seek beyond the end of the