Ack. Without adding any new syscalls, I think this, and
fadvice should be implemented as FCNTL things.
fallocate() will need support at per inode (inode_operations),
fadvice() propably per file (file_operations).
The mechanisms shall use 64-bit file sizes and offsets, naturally.
> The background for this function is that, for databases or multimedia
> files etc, you can preallocate the amount of storage you need and then
> don't have to fear running out of memory and as a sideeffect also
> probably have a faster running application since the kernel does not
> have to hunt for empty blocks while writing.
>
> Maybe somebody can take a shot at it. I can provide more information.
>
> --
> ---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
> Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
> Red Hat `--' drepper at redhat.com `------------------------
/Matti Aarnio <matti.aarnio@sonera.fi>
-
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/