lkml.org 
[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Undefined behavior? Or just a feature?
P> I seem to be able to create files in linux that are 2+ gigs when there is
P> only 100 MB free...infact I can create dozens of them without problem, and
P> the disk usage shown by "df" is unaffected, and "du" reports only 4 blocks
P> on the files. Heres the code that does it :

Welcome to the world of sparse files :-)

Yes, this is a feature, the blocks are only allocated when you write to
them.

--
Meelis Roos (mroos@tartu.cyber.ee)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.023 / U:0.968 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site