Philippe> Peter Chubb <peter@chubb.wattle.id.au> writes:>> >>>>> "Rob" == Rob Landley <rob@landley.net> writes:>> Rob> You can make a file with a hole by seeking past it and neverRob> writing to that bit, but is there any way to punch a hole in aRob> file after the fact? (I mean other with lseek and write. HavingRob> a sparse file as the result....)>> SVr4 has fcntl(fd, F_FREESP, flock) that frees the space covered by>> the struct flock in the file. Linux doesn't have this, at least in>> the baseline kernels.Philippe> However most SVr4 (at least Solaris and HP-UX) onlyPhilippe> implement FREESP when the freed space is at the file'sPhilippe> tail. In other words, FREESP can only be used to implementPhilippe> ftruncate().