Re: File questions: Head truncate?

From: peter swain (
Date: Thu May 25 2000 - 19:40:16 EST

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.


Erez Zadok wrote:
> In
> other words, if Linux might provide some general purpose functions to
> "sparsify" a file and/or shift data around, I sure would make use of it.
> Erez.

We're sorry, the .sig you have selected has been deleted or is no longer
service.  If you think you have read this .sig in error, please
and try your news reader again.  Thank-you.

- 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