"Dimitri Karamazov" <[email protected]> writes:

> I'm trying to build freenet, but it requires posix_fallocate for most of it's 
> file sharing
> capabilities. Apparently OpenBSD doesn't have it. There is nothing I could 
> find regarding this
> in the mailing list archives. Could I know the reason and what
> alternative call I could use if any.

Web searches bring up some hits with patches, e.g
"[PATCH] Initial implementation of posix_fallocate(2)"[0]

Since the patch is quite dated and didn't seem to generate a ton of
interest then, I don't expect it to be readily applicable or easy to
convince people about.

My cursory reading of FreeBSD man page suggests this is an optimization
rather than an indispensible operation. You could try to stub this call
out entirely and see how far it gets you.

Thanks
Greg

[0] 
http://openbsd-archive.7691.n7.nabble.com/PATCH-Initial-implementation-of-posix-fallocate-2-td277940.html

Reply via email to