Re: Is this a bug or a feature ? ( related to mmap )

Alan Cox (alan@LXORGUK.UKUU.ORG.UK)
Wed, 19 Mar 1997 20:55:11 +0000 (GMT)


> MAP_SHARED. Any attempt to write ( not by write syscall) using address
> returned by mmap gives "bus error" on LINUX-2.0. If the file exits
> at the point of calling open there is no problem even if it is 1 byte.

mmap doesnt extend the file. That is your problem. Grow the file to the
size needed first.