Re: posix_fallocate

Jamie Lokier (lk@tantalophile.demon.co.uk)
Fri, 14 Apr 2000 22:48:57 +0200


Ulrich Drepper wrote:
> > You could try using sendfile from /dev/zero -- that gives the kernel or
> > fs a chance to optimise that path in future.
>
> One must not change the file pointer position. Therefore sendfile is out.

Anyway it isn't guaranteed to work -- I would guess an fs is free to
convert zero blocks to holes as an optimisation.

-- Jamie

-
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/