Tag Archives: truncate

How to create a sparse file

Sparse files are files with “holes”. File holes do not take up any physical space as the file system does not allocate any disk blocks for a hole until data is written into it. Reading a hole returns a null byte. An example of sparse files is virtual machine images. For instance, when I create… Read More »