POSIX allows seeking beyond the existing end of file. If an output is performed after this seek, any read from the gap will return zero bytes. Where supported by the filesystem, this creates a sparse file.

wut
Follow

@kirby
Sparse files are a cool feature, it's when currently absent data doesn't occupy real disk space, it's very useful with things like VM disk images — which might have bigger size than what they currently use, this space remains "reserved" — if you copy such a file to a filesystem not supporting sparse files, it starts using all this disk space: en.wikipedia.org/wiki/Sparse_f

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml