6 ms·
Somewhat related is that a few filesystem types on Linux allows you to remove / insert bytes "within" a file. But it needs alignment to filesystem block size. T
by andoma 3y ago
Somewhat related is that a few filesystem types on Linux allows you to remove / insert bytes "within" a file. But it needs alignment to filesystem block size. This uses the same syscall, fallocate(2), which can be used to punch new sparse holes in a file where it previously had data.
See https://man7.org/linux/man-pages/man2/fallocate.2.html https://man7.org/linux/man-pages/man2/fallocate.2.html