How to create holes in files ?

Ben RUBSON ben.rubson at gmail.com
Thu Sep 28 14:39:33 UTC 2017


Hi,

I'm trying to make holes in files in C.
Goal is to deallocate huge files on ZFS while (randomly) reading them.

The only thing I found is on Linux, fallocate(2) with FALLOC_FL_PUNCH_HOLE.

What about FreeBSD ?

Thank you very much !

Ben



More information about the freebsd-fs mailing list