Subject: Re: Bug in mmap() for files with holes
To: None <>
From: Peter Seebach <>
List: tech-kern
Date: 11/14/2007 17:33:39
In message <>, 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...)