Subject: Re: new mremap(2): relax alignment restrictions?
To: None <tech-kern@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 07/30/2007 15:51:22
On Mon, Jul 30, 2007 at 03:43:00PM +0200, Simon 'corecode' Schubert wrote:
> Joerg Sonnenberger wrote:
> >So of all the options, ignoring the issue is the only really acceptable
> >choice IMO.
> 
> the truncate issue might be fixable though by filling a present, 
> "partially" mapped page with zeros.
> 
> I'd say the problem is even worse for partially mapped pages in the middle 
> of a file.  I.e. map 10 bytes of a 100k file, write to byte 11.

In that case the fragment will be expanded to a full block on write
back.

Joerg