Subject: Re: Bug in mmap() for files with holes
To: None <tech-kern@netbsd.org>
From: Peter Seebach <seebs@seebs.net>
List: tech-kern
Date: 11/14/2007 17:33:39
In message <3093.1195082613@splode.eterna.com.au>, matthew green writes:
>what do you expect?  this is what i would expect.

I would expect mmap to map only the parts of the file that, say, stdio would
think exist.

If a file only has one byte, and I map the first kilobyte, what should happen
if I write to the rest of that kilobyte?  The file on disk doesn't go that
far.  (I know that, as a matter of implementation, it MAY, but...)

-s