Skip to main content
6 events
when toggle format what by license comment
Jun 23, 2013 at 20:12 comment added Stéphane Chazelas @HaukeLaging F_FREESP is the Solaris one. On Linux (since 2.6.38), it's the FALLOC_FL_PUNCH_HOLE flag of the fallocate syscall. Newer versions of the fallocate utility from util-linux have an interface to that.
Jun 23, 2013 at 16:31 comment added Hauke Laging That's pretty cool. But seems to be a very new feature. It is not mentioned in my fcntl man page (2012-04-15).
Jun 23, 2013 at 16:19 comment added Celada No, it works from the beginning because of fcntl(F_FREESP) which frees the space associated with a given byte range of the file (it makes it sparse).
Jun 23, 2013 at 16:16 comment added Hauke Laging Yours, too, wouldn't work without starting from the end, would it?
Jun 23, 2013 at 16:10 comment added Celada I know... but I couldn't think of any way that didn't involve writing code, and I figured writing what I wrote was better that writing nothing. I didn't think of your clever trick of starting from the end!
Jun 23, 2013 at 16:02 history answered Celada CC BY-SA 3.0