Re: mmap beyond file end (2.4.0-test1 with Reiserfs 3.6.6)

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue May 30 2000 - 06:37:00 EST


> > This is correct behaviour actually. The fill with zero thing was very much
> > a Linuxism.
>
> Are you sure? The remaining part of the last mapped page has to be
> zeroed. (ReiserFS vor 2.2.x occasionally barfs on this one. Has it

Yes, but not more pages

> Is it really impossible to mmap() a chunk which is larger than the
> file on most other systems?

Yes. You lseek the file, write 1 byte then mmap it. Or in Linux ftruncate it
bigger and go. In fact on Linux you can ftruncate then mremap bigger

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:24 EST