4 ms·
They must have gotten answers because to many of the questions the only good answer is it depends, e.g. "can I tell the os that a section of the file is unused"
by pastage 6y ago
They must have gotten answers because to many of the questions the only good answer is it depends, e.g. "can I tell the os that a section of the file is unused" sure fcntl(F_FREESP) and you have a sparse file, but it is not obvious it works nor help with performance.
- Jasper_ 6y agofcntl(F_FREESP) only works on old UNIXen. The Linux API equivalent is fallocate(FALLOC_FL_PUNCH_HOLE)