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

From: Florian Weimer (fw@deneb.cygnus.argh.org)
Date: Tue May 30 2000 - 00:31:16 EST


alan@lxorguk.ukuu.org.uk (Alan Cox) writes:

> > fill pages beyond the file end with zeroes, Linux 2.4.0-test1 and the last
> > few prepatches before report an "Address alignment exception" when one is
> > accessing pages beyond file end. I tried to find a way to patch this
> > misbehavoir away, but didn't succeed.
>
> 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
been fixed in 2.3.x?)

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

-
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:23 EST