Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Apr 2011 14:36:38 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Kostik Belousov <kostikbel@gmail.com>
Cc:        mdf@freebsd.org, Gleb Kurtsou <gleb.kurtsou@gmail.com>, FreeBSD Arch <freebsd-arch@freebsd.org>
Subject:   Re: posix_fallocate(2)
Message-ID:  <20110415123638.GA79988@stack.nl>
In-Reply-To: <20110415093057.GJ48734@deviant.kiev.zoral.com.ua>
References:  <BANLkTimYzJ11w9X1OHShEn2wi6gjHx=YjA@mail.gmail.com> <20110414213610.GB92382@tops> <BANLkTi=OWUnB_ue3RT4bzGNvivZwW_ofkA@mail.gmail.com> <20110415093057.GJ48734@deviant.kiev.zoral.com.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110415123638.GA79988>