| ▲ | nyrikki 16 hours ago | |||||||
XFS, Ext4, btrfs etc… all support sparse files, so any app can cause problems you can try it with:
If you add conv=sparse to the dd command with a smaller block size it will sparsify what you copy too, use the wrong cp command flags and they will explode.Much harder problem than the file system layers to deal with because the stat size will look smaller usually. | ||||||||
| ▲ | layer8 15 hours ago | parent [-] | |||||||
Creating sparse files requires the application to purposefully use special calls like fallocate() or seek beyond EOF, like dd with conv=sparse does. You won't accidentally create a sparse file just by filling a file with zeros. | ||||||||
| ||||||||