posix_fallocate(2)

Jilles Tjoelker jilles at stack.nl
Fri Apr 15 12:36:40 UTC 2011


On Fri, Apr 15, 2011 at 12:30:57PM +0300, Kostik Belousov wrote:
> You might find vn_rdwr easier to use then the bare vops. In particular,
> it would not omit the mac calls for read/write.

I think omitting the MAC call for read is how it should be. The
application does not read any data, the read is just the only way to
force allocation without destroying existing data. posix_fallocate()
should work for write-only files.

-- 
Jilles Tjoelker


More information about the freebsd-arch mailing list