Re: File questions: Head truncate?

From: Benjamin C.R. LaHaise (
Date: Thu May 25 2000 - 21:10:40 EST

On Thu, 25 May 2000, peter swain wrote:

> i don't recall *which* unix provides this functionality (solaris? irix?
> ...)
> but it's out there -- someone has spliced it in as a fcntl().
> fcntl(fd, FCNTL_DEALLOC_or_something, struct flock*);
> uses a flock-style byte range specifier to punch a hole in the file.
> It's cute.

A Solaris box here has such an fcntl: F_FREESP is the option, and it
takes a struct flock that specifies the region (aren't Solaris manpages
online?). Might be worth investigating for 2.5.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:15 EST