Re: Undefined behavior? Or just a feature?
Meelis Roos (mroos@tartu.cyber.ee)
Sat, 14 Aug 1999 19:58:48 +0300
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/