Re: File questions: Head truncate?

From: peter swain (swine@pobox.com)
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.

^..^
(oo)

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
in
service.  If you think you have read this .sig in error, please
disconnect
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 majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



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